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

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

Comments

Projects
None yet
3 participants

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)

Any thoughts on this?

billdami commented Jun 1, 2011

Anyone?

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.

rs added a commit to rs/jquerytools that referenced this issue Dec 28, 2011

rs added a commit to rs/jquerytools that referenced this issue Jan 4, 2012

@duclet duclet closed this in 50bf1b5 Jan 19, 2012

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