react-autocomplete
react-autocomplete copied to clipboard
setSelectionRange not available on email (& number inputs)
Currently one cannot arrow through and hit return on an item when the input is an input type email because of this line.
setSelectionRange is only supported for text, search, url, tel, password (cmd-f -> setSelectionRange) 😢
A couple thoughts on possible options:
- Try / catch that line and dont allow selection if it fails
- Add a prop to disable selection on keyboard accept