-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
vue-select wrapped in label tag #505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hitting the same issue here. Any chance we can get a fix? |
I have same issue here ! |
I've heard nothing on it. |
Sorry for the slow reply on this one – trying to work through these unreplied issues and find the things that really need to be fixed. This seems like one of them, I've added it to the list of todos! |
This is a known issue: sagalbot/vue-select#505 Likely we should switch from `vue-select` to something else.
Any update on this one, Still facing same issue. |
When the component is wrapped in a
<label>
element, clicking an option too quickly causes the drop down to re-focus. Here's a simple recreation of the bug.http://jsbin.com/tofafiyaro/edit?html,js,output
If you hold the mouse down on the selected option for half a second, the drop down disappears and everything appears to behave correctly. I think the fadeOut gets rid of the element fast enough for the mouseUp event to trigger on something else.
If the click event's propagation is stopped, that should resolve the issue. I believe line 367 of Select.vue could fix the issue; add the stop event modifier:
<a @mousedown.prevent.stop="select(option)">
Not sure which order is best. (love this component, by the way)The text was updated successfully, but these errors were encountered: