react-autocomplete icon indicating copy to clipboard operation
react-autocomplete copied to clipboard

iOS Safari: Menu does not open again after selection of an option

Open gweax opened this issue 5 years ago • 1 comments

Steps to reproduce:

  1. In iOS Safari (Simulator is okay, too), go to https://reactcommunity.org/react-autocomplete/static-data/
  2. Tap on the field. The menu opens.
  3. Tap on an option (for example "Maine"). The menu closes.
  4. Tap on the field. The menu does not open again.

To open the menu again, the field has to lose the focus first. When it gains the focus again, the menu opens correctly.

Other browsers (like Chrome on Android) work fine.

gweax avatar Oct 05 '18 12:10 gweax

On debugging I noticed that in step 4 of the description above, handleInputClick does not get called. Even an additional event handler set in the dev tools ($0.addEventListener('click', function (e) { console.log(e); });) does not get called. So maybe it's an issue with Safari.

A click on the label works fine.

gweax avatar Oct 05 '18 12:10 gweax