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
Safari Loses Focus After 2 Key Presses #7
Comments
This is may be some inconsistency in Safari browser, I've found question on SO datalist input element loses cursor after datalist list attribute is set on ios safari I've added a bounty I will wait and see if someone reply. Maybe the solution is not to add the "list" attribute, but only element with the menu. This is something I can test on BrowserStack. |
Oddly enough, in version 13.0.3 only the first two keys will display, but if you press the comma at any time after, it will still create a new tag. |
I found a simple workaround was to set an invalid list value on _toggle_completion(false) instead of removing the list attribute. Additionally _toggle_completion(false) was called after initialisation of _new_input_tag in init(). Changing the list attribute does not appear to trip over Safari losing focus and Chrome/Firefox work as expected. I can provide a PR |
Sure, go ahead and create a PR. I will test it on BrowserStack if it works. |
Released in version 0.4.3. Thanks @lucasnetau. |
Firefox doesn't have this problem but Safari does. For some reason, I can only type two characters in the tag box before I lose focus and have to click inside the input box again.
The text was updated successfully, but these errors were encountered: