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
I don't know if I'm not seeing the feature or if it's not present:
for example, if I have an input with data-rules="numeric" and it is empty, it will pass the validation
BUT, if I have something like data-rules="date_format:DD/MM/YYYY" or data-rules="email", and the input is empty, it will NOT pass the validation as if the field is required.
The text was updated successfully, but these errors were encountered:
You are right, I was planning to fix this sometime ago but few critical things came up. this issue will be fixed in the next couple of days. required is now kinda misleading.
The suggested behavior is: unless the field is required, empty values will pass the validation.
@RicardoEmpre OK it is implemented now in the last commit, I will tag a release tonight or first thing in the morning.
From now on, all fields pass will validation if they have "empty" values, unless they have the required validation rule. the values that are considered empty are: undefined, null and ''
I don't know if I'm not seeing the feature or if it's not present:
for example, if I have an input with data-rules="numeric" and it is empty, it will pass the validation
BUT, if I have something like data-rules="date_format:DD/MM/YYYY" or data-rules="email", and the input is empty, it will NOT pass the validation as if the field is required.
The text was updated successfully, but these errors were encountered: