asigloo / vue-dynamic-forms

Easy way to dynamically create reactive forms in Vue based on a varying business object model
https://vue-dynamic-forms.netlify.app/
MIT License
395 stars 45 forks source link

[Question] mandatory fields and blur #302

Open samo9789 opened 2 years ago

samo9789 commented 2 years ago

Is your feature request related to a problem? Please describe.

I have worked on a simple form to create, edit and save an user account. Finally, I came to the topic of validation and added three fields as mandatory (validator : required). By doing so, the * was added automatically so it seems to work. I then tried to empty the field and click on submit in order to see (and write the CSS) for the error message "this field can not be empty". Problem is : every time I try to clear the field and move to the next one, it re-fills with what was there. Like mandatory fields can not ever be left empty. If I remove the validator : required it seems this auto re-filling of the field is removed....

Is there a way to disable this auto-refill option ? Or an option on the required validator to have this or not enabled ?

Thank you

Describe the solution you'd like

Is there a way to disable this auto-refill option ? Or an option on the required validator to have this or not enabled ?

Describe alternatives you've considered

No response

Additional context

No response

Validations