You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following case, the target element will render after the focus event triggered, but the click outside callback was also called even the input is ignored.
After seeking the source code, I found the pointerdown event listener may have some problem.
Because the target element is undefined in the first time, so it won't change the value of shouldListen. But in this case, shouldListen should be false
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Check that this is a concrete bug. For Q&A open a GitHub Discussion.
Describe the bug
In the following case, the target element will render after the
focus
event triggered, but the click outside callback was also called even theinput
is ignored.After seeking the source code, I found the
pointerdown
event listener may have some problem.Because the target element is
undefined
in the first time, so it won't change the value ofshouldListen
. But in this case,shouldListen
should befalse
2023-10-08.15.47.47.mov
Reproduction
https://stackblitz.com/edit/vitejs-vite-gvkvun?file=src%2FApp.vue
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: