Overriding rule arguments for Required rule and AllowFalse:true #3482
-
Hi folks! Case:
Because of this, the validation of "false" values in radiobuttons failed (I mean radiobutton with boolean value false) I found the confirmation in the source code:
The documentation says that allowFalse has a default value of true: https://vee-validate.logaretm.com/v3/guide/rules.html#required But I didn't find any mentions
And in the component where I define the Required rule:
Maybe it's obvious, but I still think it's worth mentioning it in the documentation. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The documentation only applies to rules if used as is, since you provided your own params you will overwrite the old one which removes You should try to merge your params with the rules own params:
|
Beta Was this translation helpful? Give feedback.
The documentation only applies to rules if used as is, since you provided your own params you will overwrite the old one which removes
allowFalse
from the rule.You should try to merge your params with the rules own params: