Reputation: 1066
I want to clear form components (textfields etc) and it model. On submit method, after persisting the model correctly, I call clearInput(), but nothing happends to model and fields still filled.
Am I forgetting something about clearInput() method?
Upvotes: 2
Views: 1285
Reputation: 17533
In addition to clearInput()
you need to set an empty model object and to rerender the form.
Please show us your code if these suggestions do not help.
Upvotes: 1