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

🐛 fixes sandbox error case in chrome #13

Merged
merged 2 commits into from
Jan 15, 2022

Conversation

axelmarciano
Copy link
Contributor

@axelmarciano axelmarciano commented Jan 12, 2022

In the example the input value is cleared via input.value = ''.
Yet the handler function that manage the selection logic is called on 'input' and 'selectionchange' so without an event dispatch it feels like the input is blurred on chrome.
I have also added some comments on the example.

fixes #10

…fter clearing the input, also add some documentation about it
@axelmarciano axelmarciano changed the title Add event 'input' dispatch on the example Dispatch 'input' event on the example Jan 12, 2022
@jasikpark

This comment has been minimized.

Repository owner deleted a comment from axelmarciano Jan 15, 2022
Repository owner deleted a comment from axelmarciano Jan 15, 2022
@leonardodino leonardodino changed the title Dispatch 'input' event on the example 🐛 fixes sandbox error case in chrome Jan 15, 2022
@leonardodino leonardodino merged commit 4840048 into leonardodino:main Jan 15, 2022
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

Successfully merging this pull request may close these issues.

First input is not focused after error, in chrome
3 participants