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

setSelectionRange not available on email (& number inputs)

Open benogle opened this issue 7 years ago • 0 comments

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

benogle avatar May 01 '18 21:05 benogle