You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
import{TextField,EmailField,Validator,email,required,}from"@asigloo/vue-dynamic-forms";constform=computed(()=>({id: "my-awesome-form",fields: {name: EmailField({label: "Email",validations: [Validator({validator: required,text: "This field is required"}),Validator({validator: email,text: "Format of email is incorrect"}),],}),},}));constformSubmitted=(e:any)=>{console.log(e)}</script>
Describe the bug
In the input typing.
"hello"
would yield the correct result which is an invalid email.
making the input.
"gg@d"
would pass the validation and submit.
Expected behavior
"gg@d"
should not pass as there is no domain part.
Version
3.x.x (Vue 3.x)
Describe the bug
email validation is incorrect.
considering the following code
Describe the bug
In the input typing.
"hello"
would yield the correct result which is an invalid email.
making the input.
"gg@d"
would pass the validation and submit.
Expected behavior
"gg@d"
should not pass as there is no domain part.
System Info
Additional context
the following gives a successfull result when using a different validator.
Validations
The text was updated successfully, but these errors were encountered: