-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not clear/ override the input value in v 1.0.3 #104
Comments
same here. need provision to clear the input. |
@ojaspatharkar-qure , @olgaplaga Ddi you find the solution? |
have you tried using |
|
@LoveWithCoding hello, Can you confirm if I understand this correctly? Is this the issue where it doesn't work when I create a button externally and try to control the input value? |
let say if i type correct email and press tab then it will be shown as chip(with some background color). but some times user might leave the filed with half typed value which is any way not a valid email. In such a cases i want to remove the half typed value on OnBlur event. I do not want fields contain unfinished emails. Is there a way to achieve this? |
I just made a PR. PLZ review my code. const [input, setInput] = useState<string>('');
return (
<ReactMultiEmail
inputValue={input}
onChangeInput={value => {
console.log(value);
setInput(value);
}}
onBlur={() => {
setInput('');
}}
/>
); |
Exactly. this what I am looking for. |
Now, you can use 1.0.24 It can be used as in the following example. const [input, setInput] = useState<string>('');
return (
<ReactMultiEmail
inputValue={input}
onChangeInput={value => {
console.log(value);
setInput(value);
}}
onBlur={() => {
setInput('');
}}
/>
); |
@thomasJang Thank you for this quick response. This solved the problem discussed here, but got new issue. Screen.Recording.2024-07-17.at.5.04.01.PM.movwhen email is validated(When tapped on tab bar), email field renders redundant emails because of new prop |
@Yandamuri |
|
@Yandamuri I don't think there's a problem when I check it on the link. Check it out. |
@thomasJang [ Screen.Recording.2024-07-18.at.8.55.01.AM.mov](url) OR Please correct me if i am missing something. |
Are you using Windows? |
@Yandamuri did you press space? |
@Yandamuri |
I am using MacBook and of course I pressed space bar(not the |
Now, you can use 1.0.25 @Yandamuri |
@thomasJang Yes, It's working as expected. Thank you so much for your effort and prompt response. It would be great if the |
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:
This will not work, because the package overrides this process with the value. Please provide an option to clear the input from value.
The text was updated successfully, but these errors were encountered: