Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Validate on blur without delay #130

Closed
garygreen opened this issue May 15, 2015 · 4 comments
Closed

Validate on blur without delay #130

garygreen opened this issue May 15, 2015 · 4 comments
Assignees

Comments

@garygreen
Copy link

It would be good to add option to automatically validate straight away when blur from the field, as it will make the validation feel more speedy to the user.

@1000hz
Copy link
Owner

1000hz commented May 16, 2015

Yeah, this seems like a good idea. I'll need to think about how to implement it cleanly.

@garygreen
Copy link
Author

Yup. I think the whole delay and triggering of the validation needs a bit of refinement.

For instance, if there is already an error shown, validation should next run as soon as it can i.e. on keypress and without delay.
Or just 'reset' the ui to remove the error/success msg as soon as key is pressed, as it won't be known if it's valid until the validation is actually run after the delay.
The whole plugin feels pretty slow imo because of all this delay stuff

@1000hz 1000hz self-assigned this Jul 1, 2015
@SimonFricker
Copy link

+1

1 similar comment
@chenster
Copy link

+1

@1000hz 1000hz closed this as completed in 218f057 Mar 3, 2016
1000hz added a commit that referenced this issue Mar 3, 2016
…234)

- Scoping `input`/`change`/`focusout` event handlers to `INPUT_SELECTOR` elements (Fixes #251)
- Immediately validate on blur (Fixes #130)
- Only validate a field if it is dirty or invalid (Fixes #258, Fixes #152)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants