vue-dynamic-forms icon indicating copy to clipboard operation
vue-dynamic-forms copied to clipboard

[Question] mandatory fields and blur

Open samo9789 opened this issue 2 years ago • 0 comments

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

  • [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

samo9789 avatar Mar 02 '22 09:03 samo9789