Closed likeabas closed 1 year ago
The plugin is designed to grab the values to see which are checked. Since your checkboxes do not have values it is breaking. I can possibly make an enhancement to the plugin that can mark which is checked without values but the simplest way to fix this is to add value="Check 1"
, value="Check 2"
, etc.. You'd likely need values anyways for form submission.
Thanks for the quick response! That makes total sense that I need to add values. I didn’t do that yet because I was first creating and testing the front-end. Perhaps just mentioning in the readme that this is needed (as with the name field and the x-data attribute) should solve it for other developers
When you're using the x-validation.group for checkboxes something goes wrong with the validation when multiple checkboxes are selected and one is unselected. In this case, it shows the error message, while there are some checkboxes of the group still selected.
My code: