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

Race condition between item click and onblur events #15

Open
jrf0110 opened this issue Aug 7, 2016 · 0 comments
Open

Race condition between item click and onblur events #15

jrf0110 opened this issue Aug 7, 2016 · 0 comments

Comments

@jrf0110
Copy link
Member

jrf0110 commented Aug 7, 2016

The problem is that the onblur handler is fired on mousedown, so onclick hasn't fired yet, thus closing the dialog, and causing the click target to be outside

The solution will be to detect when we're mouse downing on an item, and if so, ignore the blur handler. I'm sure there are some edge cases we'll figure out along the way

From #14

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

No branches or pull requests

1 participant