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?
to your account
A click event to be fired, and then the blur to continue.
A blur event is called and the click event is disposed.
I have no really idea if this is related to Vue or how the Browser handles the event delegations. Although I tested this with Firefox, Chrome, IE and Edge, they ALL behaviored the same.
Any clue would be highly appreciated.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
This is an interesting question.
I think the click-related keydown triggers the blur on the input even before that the click event is fired.
Sorry, something went wrong.
This is a standard behavior of the browser. You might want to listen for the mousedown event instead.
A proper way would be to use more complicated logic:
mousedown event is enough I think, thank you very much @simplesmiler !
No branches or pull requests