All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Custom validation functions (passed in via a data-validation attribute) will now always be run in the
validateInput
method. Before, custom validation was not checked unless an input had a value, but this precluded many types of custom validation.
This could be a breaking change if you used a custom validation function (ie via a data-validation
attribute) for a field that was not required. If you relied on the previous behavior, you must ensure they handle allowing inputs to be empty when not required.
- If an input is disabled, it will be ignored by validation methods. This means that if you have a form with a disabled input, it will not be validated when the form is submitted.
- Fixed bug where assigning preventSubmit in the options object would not work as intended.