Skip to content

Copy pasting any value with spaces should remove spaces. #849

Closed
@sgokhru

Description

@sgokhru

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions