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

How do I reset an Input Box back to blank after submit action? #275

Open
raygao opened this issue Feb 28, 2023 · 1 comment
Open

How do I reset an Input Box back to blank after submit action? #275

raygao opened this issue Feb 28, 2023 · 1 comment

Comments

@raygao
Copy link

raygao commented Feb 28, 2023

I need some help here.
How do I reset an Input Box back to blank, after pressing the Submit button on the enclosing Form? There is no documentation anywhere, explaining how to reset UI components after an action.
Thanks a lot. Merci beaucoup.

@fabien-ml
Copy link
Collaborator

Hi, this is not built in the library. You have to control the input with a signal, the value and onInput props.
Then you can reset the value of the signal after submitting your form.

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

2 participants