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
Open browser dev tools console. Click on Select to see event.target. Click on button and divs to see correct event.target.
Describe the bug
Clicking on Select triggers a click event on the body/html tag. This is unexpected behavior for click event listeners. For example if I have a component that must close when you click outside of it, and there is a Select inside of it, it will always close when clicking the select.
I believe this may apply to clicking any part of the select, from the initial trigger, to options, and more. If there a way to expose click.stop on them that may also work, but I haven't been able to get click.stop to work.
Expected behavior
Ideally event.target should be the trigger element.
Context & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered:
Environment
Link to minimal reproduction
https://stackblitz.com/edit/izdn5j-kntbmu?file=src%2FApp.vue
Steps to reproduce
Open browser dev tools console. Click on Select to see
event.target
. Click on button and divs to see correctevent.target
.Describe the bug
Clicking on Select triggers a click event on the body/html tag. This is unexpected behavior for click event listeners. For example if I have a component that must close when you click outside of it, and there is a Select inside of it, it will always close when clicking the select.
I believe this may apply to clicking any part of the select, from the initial trigger, to options, and more. If there a way to expose click.stop on them that may also work, but I haven't been able to get click.stop to work.
Expected behavior
Ideally
event.target
should be the trigger element.Context & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered: