fix: use elementFromPoint

This commit is contained in:
braks
2022-09-12 22:24:51 +02:00
committed by Braks
parent 9ea87c878c
commit 32a98cd606

View File

@@ -35,7 +35,7 @@ export const getHostForElement = (element: HTMLElement): Document => {
const doc = element.getRootNode() as Document
const window = useWindow()
if ('getElementFromPoint' in doc) return doc
if ('elementFromPoint' in doc) return doc
else return window.document
}