matestack / matestack-ui-core

Component based web UIs in pure Ruby for Rails. Boost your productivity & easily create component based web UIs in pure Ruby.
https://www.matestack.io
MIT License
545 stars 47 forks source link

Flush form errors when submitted successfully #539

Closed jonasjabari closed 3 years ago

jonasjabari commented 3 years ago

Errors are not flushed when the form is submitted successfully. Relevant in a (edge case) scenario where an error is rendered on an input field but may be satisfied by another input afterwards (and no success transition or whatever is performed) --> the form should simply reset all errors when submitted successfully