You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: