Skip to content
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

Improve the race condition fix for blur vs. mousedown #16

Open
joaocunha opened this issue Nov 27, 2014 · 0 comments
Open

Improve the race condition fix for blur vs. mousedown #16

joaocunha opened this issue Nov 27, 2014 · 0 comments

Comments

@joaocunha
Copy link
Owner

mousedown is needed to trigger the click event before the blur:
http://stackoverflow.com/questions/10652852/jquery-fire-click-before-blur-event/10653160#10653160

But as there is some DOM manipulation involved on the blur event, it ends up overwriting the selected item. I managed to fix with a lame window.setTimeout(), but there might be a more elegant solution.

See the mousedown event handler for details.

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

1 participant