pickadate value getting removed on first submit if there is other valdiation error
serkandurusoy opened this issue · 1 comments
serkandurusoy commented
This also reproducible on the demo playground.
- Fill in the form, including the pickadate field, but leave some other mandatory field empty
- Submit the form
- See that the pickadate field is cleared, and required message is shown
- Repeat (don't refresh the page), now you see that the value is persisted across invalid submits
serkandurusoy commented
removing the else
block in https://github.com/djhi/meteor-autoform-materialize/blob/master/inputTypes/pickadate/pickadate.js#L91-L93 mitigates the issue.
I frankly don't get why that is there anyway. I've also checked other datepicker style autoform components, and it seems no one cares about such "clearing".