Releases: colinaut/alpinejs-plugin-simple-validate
Releases · colinaut/alpinejs-plugin-simple-validate
v1.6.7
v1.6.6
v1.6.5
v1.6.4
Updates from 1.6.2
- improvement in generic error msg. It now takes the name/id and converts dashes to spaces so fav-cat becomes "fav cat required"
- when searching for adjacent
error-msg
element it searches all following elements. This allows you to add the element further away with a description text or label between it.
Additional fix for 1.6.4
- fix: getNextSibling now stops searching for next
error-msg
when it hits a field and allows intervening labels a0368de
v1.6.3
Updates
- improvement in generic error msg. It now takes the name/id and converts dashes to spaces so fav-cat becomes "fav cat required"
- when searching for adjacent
error-msg
element it searches all following elements. This allows you to add the element further away with a description text or label between it.
v1.6.2
v1.6.1
v1.6.0
New Version 1.6
I've changed validation and error messages to comply with aria practices. You may need to change your css but this is otherwise backwards compatible from version 1.5.
- aria-invalid and aria-errormessage are added.
- Error messages are displayed in an adjacent element with error-msg class id matched with the aria-errormessage
- If this element already exists it uses it. Otherwise it creates a new element.
- This element is hidden or shown using the hidden attribute.
- Also did some general code cleanup.