autocomplete icon indicating copy to clipboard operation
autocomplete copied to clipboard

On some mobile browsers blurring the input after selection triggers autoselectOnBlur.

Open stevenbg opened this issue 7 years ago • 1 comments

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.

  1. on autocomplete:selected. open in Firefox or Chrome mobile source on jsbin

  2. 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.

stevenbg avatar Aug 30 '19 11:08 stevenbg

Autocomplete v0 has been in low maintenance mode for a few years and we just released Autocomplete v1 so I'm closing this.

Resources

francoischalifour avatar May 04 '21 10:05 francoischalifour