In aurelia v1 the default trigger for aurelia-validation was "blur". This means validation is triggered only after you leave an element. As a result, the user gets feedback about an error when the next element has focus. In order to correct a mistake the user has to either Shift-Tab to the previous element OR pick up their mouse and select the previous elment. In v2 the project wants to introduce a breaking change by changing the default Default trigger to changeOrFocusout as we believe it delivers a better UX for the user. By this change, feedback is provided to the user immediately, while the element that is changing still has focus so she/he can change it immediately which is more convenient. In case this triggers too many validation calls (e.g. when an async API must happen as part of validation), the developer has to manually change the trigger for that specific element/rule.

Comments

0 comments

Login to post a comment

Don't have an account? Signing up takes 20 seconds and is completly free.

Sign Up Login
Vote Saved!

Want to make your own poll? Create one in seconds - it’s completely free.

Share via Link

Use this at a public event or conference to allow large groups of people to access the poll url easily.

Share via QR Code

Use this at a public event or conference to allow large groups of people to access the poll url easily.

No longer getting data due to inactivity.

Scroll to start getting data again.

https://fast-poll.com/poll/d9794d9f
https://fast-poll.com/poll/results/d9794d9f
Upgrade to Pro

Unlock advanced funtionality for polls, remove ads and access advanced stats and more with our Pro plans.