Skip to content
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

Set InputText value to an empty string. #69

Open
Gabriele1004 opened this issue Apr 23, 2021 · 0 comments
Open

Set InputText value to an empty string. #69

Gabriele1004 opened this issue Apr 23, 2021 · 0 comments

Comments

@Gabriele1004
Copy link

Hello everyone.
I would like to set the value of the Input text to empty string when I click an x ​​key, which I have already added. I tried adding a state on which I save the text every time it is changed, linked to the input by passing it via value, so when I click the x button I can set the state to an empty string and thus delete all the text. I tried but it doesn't work, would anyone know how to do it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant