Web Development

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.

Neh, That would be a very bad idea!

54%

13 Votes

Yes, I like it a lot!

46%

11 Votes

Link copied

Comments

0 comments

Login to post a comment

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

Sign Up
Copy Link
Copy Link

Getting data

No longer getting data due to inactivity.

Scroll to start getting data again.