Clear input fields after form posting #56
simonmesmith
announced in
General
Replies: 1 comment 1 reply
-
Thanks for trying it out! To do this, I would recommend setting the
Then your This method has the disadvantage that it will now make a network call on each keystroke rather than only on the final blur. We will look into a way to make this more performant since it's such a common use case. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First off, I love the idea and the execution. Clean, understandable, easy to use.
I have what's possibly a stupid question, however.
I cannot seem to find a way to clear fields after saving data.
For example, I have a form with fields like this:
I save the data and reset the attributes:
But the text remains in the input fields.
I tried setting the
value
attribute of input fields to state attributes, but then you can't change them via the UI, which makes sense as it's kind of circular logic.Anyway, help appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions