react-multi-email icon indicating copy to clipboard operation
react-multi-email copied to clipboard

Can not clear/ override the input value in v 1.0.3

Open olgaplaga opened this issue 3 years ago • 20 comments

There is currently no way to clear the input value before the email is transformed into the tile.

The value is set while someone writes inside an input before the email address is finished and converted to the tile.
At this moment, when I want to create for e.g an action button, that clears input from unfinished emails like this:

const input: HTMLInputElement | null = document.querySelector('.react-multi-email input')

input.value = '' // this will not work

This will not work, because the package overrides this process with the value. Please provide an option to clear the input from value.

olgaplaga avatar Dec 08 '22 09:12 olgaplaga

same here. need provision to clear the input.

ojaspatharkar-qure avatar Feb 02 '23 15:02 ojaspatharkar-qure