Skip to content

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

Open
Made-of-Clay opened this issue Apr 6, 2018 · 5 comments
Open

vue-select wrapped in label tag #505

Made-of-Clay opened this issue Apr 6, 2018 · 5 comments
Assignees

Comments

@Made-of-Clay
Copy link

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)

@stevenharman
Copy link
Contributor

Hitting the same issue here. Any chance we can get a fix?

@sylfel
Copy link

sylfel commented Jul 17, 2018

I have same issue here !
Any news about a fix ?

@Made-of-Clay
Copy link
Author

I've heard nothing on it.

@sagalbot
Copy link
Owner

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!

candu pushed a commit to CityofToronto/bdit_flashcrow that referenced this issue Apr 24, 2019
This is a known issue: sagalbot/vue-select#505

Likely we should switch from `vue-select` to something else.
@idmanish
Copy link

Any update on this one, Still facing same issue.
https://jsbin.com/tofafiyaro/edit?html,js,output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants