Skip to content

Commit 4dcc2b7

Browse files
authored
fix(useMouseInElement): allow el to be instanceof Element (#4189)
1 parent 22d419e commit 4dcc2b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/useMouseInElement/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function useMouseInElement(
4545
[targetRef, x, y],
4646
() => {
4747
const el = unrefElement(targetRef)
48-
if (!el || !(el instanceof HTMLElement))
48+
if (!el || !(el instanceof Element))
4949
return
5050

5151
const {

0 commit comments

Comments
 (0)