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

Validator removes other listeners from inputs #390

Closed
billdami opened this issue May 10, 2011 · 3 comments
Closed

Validator removes other listeners from inputs #390

billdami opened this issue May 10, 2011 · 3 comments

Comments

@billdami
Copy link

Just noticed this issue after updating jquery to 1.6, but I'm not sure if its related or not. After checkValidity() is run and fails twice, (form inputs are stil ok after one validation) all other event listeners on individual form fields are lost, and only one listener of type "invalid" remains.

(Running jQuery Tools v1.2.5)

@billdami
Copy link
Author

Any thoughts on this?

@billdami
Copy link
Author

billdami commented Jun 1, 2011

Anyone?

@pinut
Copy link

pinut commented Aug 15, 2011

I see a similar behaviour when calling reset() using jquery 1.4.2 and tools version 1.2.5. Having a "keyup" listener attached to an input which is subject to validator, this listener will be unhooked after the first call to reset().

You can either work around it by using "live" instead of "bind" for your custom handler or give the validator configuration "errorInputEvent" a fake value which is not null.

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

3 participants