Replies: 1 comment 1 reply
-
Not sure what you mean by this. can you elaborate? Would be nice seeing an example of the end result, even if sketched. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using vee-validate along with yup.
For my form, I currently create an error border like this:
This works great when the validation is just for one field.
However, I have a scenario where there are two checkboxes. The validation is that at least one box needs to be checked. I would also like the red border box to wrap around both checkboxes, like so:
Desired error box:
The v-slot is scoped within the Field tag, but I want the input tag to be outside. Also, on yup, I am making a validation rule against
parentCheck
, while the individual fields have form names likeparentCheck.checkbox1
andparentCheck.checkbox2
. What's the best way to apply the input border?Beta Was this translation helpful? Give feedback.
All reactions