0👍
You have to change the order of the rule declared, from regex, custom_require_if, max
to custom_require_if, regex, max
It applies each rule you declared by following the order of the declaration, it works like an if full of “or” declarations.
The validation then fails upon the first rule not satisfied and return the corresponding error message
- [Vuejs]-Integration of back-end webpack with Vue-CLI 3
- [Vuejs]-Vuejs mounted hook in component not working as expected
Source:stackexchange.com