When I add an exclamation mark to the email_home field, it shows an error as I expect. If i delete the exclamation mark and leave the email_home field empty, an error remains showing Invalid email: Received "". I expect no validation error as I used v.nullish.
Any ideas on what I may be doing wrong or does this look like a bug?
I have a form with 2 email fields. I added the following validation:
email_work: v.pipe(v.string(), v.nonEmpty(), v.email()), email_home: v.nullish(v.pipe(v.string(), v.email())),
I'm using ModularForms with SolidJS.
When I add an exclamation mark to the email_home field, it shows an error as I expect. If i delete the exclamation mark and leave the email_home field empty, an error remains showing Invalid email: Received "". I expect no validation error as I used v.nullish.
Any ideas on what I may be doing wrong or does this look like a bug?
Thanks,