Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

[Question] mandatory fields and blur #302

Open
1 task done
samo9789 opened this issue Mar 2, 2022 · 0 comments
Open
1 task done

[Question] mandatory fields and blur #302

samo9789 opened this issue Mar 2, 2022 · 0 comments

Comments

@samo9789
Copy link

samo9789 commented Mar 2, 2022

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

  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant