react-autocomplete
react-autocomplete copied to clipboard
iOS Safari: Menu does not open again after selection of an option
Steps to reproduce:
- In iOS Safari (Simulator is okay, too), go to https://reactcommunity.org/react-autocomplete/static-data/
- Tap on the field. The menu opens.
- Tap on an option (for example "Maine"). The menu closes.
- 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.
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.