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

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

Open mattmiranda opened this issue 2 years ago • 0 comments

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

mattmiranda avatar Jun 14 '22 08:06 mattmiranda