Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proactive vs Reactive #98

Open
ChekTek opened this issue May 3, 2018 · 1 comment
Open

Proactive vs Reactive #98

ChekTek opened this issue May 3, 2018 · 1 comment

Comments

@ChekTek
Copy link

ChekTek commented May 3, 2018

Validation works great, but on numerous occasions our users have requested that the input be prevented beforehand rather than getting an error after the form is submitted. i.e. an input has the numeric class, prevent alpha characters from being typed, rather than waiting for the box to turn red after the form is submitted. Perhaps introduce a class of "aggressive" vs "lazy", or an attribute on the input. It could even be an attribute on the form to say this form is validated aggressively or lazily.

@NYPD
Copy link
Owner

NYPD commented May 8, 2018

ristu.js can be used in conjugation with javascript event listeners to allow or prevent user input. This could be a possible addition to the library, but a concern of mine is not telling the users why their input is not being registered.

I'll think about possible implementation of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants