react-bootstrap-typeahead icon indicating copy to clipboard operation
react-bootstrap-typeahead copied to clipboard

Copy pasting any value with spaces should remove spaces.

Open sgokhru opened this issue 1 year ago • 0 comments

I'm using the AsyncTypeahead component as a input field:

So the when a user copy paste some string which contain trailing space then I want to remove the space and update the AsyncTypeahead value.

I have tried few ways:

  1. I am storing the typeahead value by using state variable and using that value but updated value is not getting reflected.
  2. I am creating a ref and trying to update value by using inputRef.current.getInput().value = trimmedValue.

Both the ways are not working.

sgokhru avatar May 06 '24 13:05 sgokhru