ejmudi / react-autocomplete-hint

A React component for Autocomplete Hint.
https://ejmudi.github.io/react-autocomplete-hint/
MIT License
164 stars 16 forks source link

Scroll the input to show the full hint when end of input box is reached #50

Open mattmiranda opened 2 years ago

mattmiranda commented 2 years ago

Hi,

Is your feature request related to a problem? Please describe. Some of the hints I'm using are longer than the size of the input box itself so the end of the hint gets cut off. For this particular case I can't increase the width of the input box.

Describe the solution you'd like A clear and concise description of what you want to happen. It would be great if the input box automatically "scrolled" right to show the end of the hint. I understand that the beginning of the sentence would get cut off instead, but that's okay.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. I'm currently trying to grab the hint from onHint prop and use the hint length to force scroll the input.

Additional context Add any other context or screenshots about the feature request here. Screen Shot 2022-06-14 at 5 34 29 PM