fix: use elementFromPoint

This commit is contained in:
braks
2022-09-14 20:07:58 +02:00
committed by Braks
parent 9ea87c878c
commit 32a98cd606
+1 -1
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
}