On some mobile browsers blurring the input after selection triggers autoselectOnBlur.
Do you want to request a feature or report a bug? Bug. Happens on 0.37 too.
What is the current behavior? On Firefox and Chrome mobile I can't select a value from the autocomplete list. Whatever you choose, the result is always the first option.
If the current behavior is a bug, please provide all the steps to reproduce and a minimal
JSFiddle example or a repository on GitHub that we can npm install
and npm start.
I want the text input to lose focus when a mobile user chooses an option.
So I call the blur event on the input after autocomplete has done its job.
But on Firefox and Chrome mobile that seems to trigger a second autocomplete (I have autoselectOnBlur enabled).
I believe that should not happen, because when I am calling blur the autocomplete dropdown or its cursor should no longer exist.
-
on autocomplete:selected. open in Firefox or Chrome mobile source on jsbin
-
on autocomplete:closed. This also fails on desktop. open in Firefox or Chrome source on jsbin
What is the expected behavior? I need the text input to lose focus when a user makes his choice. If this is not a bug, then what is the right approach? I need to have autoselectOnBlur enabled.
Autocomplete v0 has been in low maintenance mode for a few years and we just released Autocomplete v1 so I'm closing this.
Resources