-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: focusout trigger + changeOrX behavior change
BREAKING CHANGE: This commit changes the default behavior for the changeOrBlur trigger. - The change trigger is ineffective till the associated property is validated once, either by manual validation or by blur-triggered validation. This prevents showing validation failure immediately in case of an incomplete input. Note the distinction made between *incomplete* and *invalid* input. - The blur trigger is ineffective until the property is dirty; i.e. any changes were made to the property. This prevents showing a failure message when there is a blur event w/o changing the property. This closes #509. Additionally, this commit also adds 2 new validateTriggers namely focusout, and changeOrFocusout and respective binding behaviors. As it is quite evident from the name the triggers are based on focusout DOM event. The difference between blur and focusout is that the later bubbles. It is useful for custom elements, containing input elements. The changeOrFocusout is similar in nature of changeOrBlur, as described above. This closes #543.
- Loading branch information
Showing
20 changed files
with
1,124 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.