Skip to main content

Bug Tracker

Side navigation

#4441 closed bug (invalid)

Opened March 28, 2009 03:39AM UTC

Closed February 05, 2010 08:31PM UTC

[validate] lastElement isn't cleared on resetForm

Reported by: xianpants Owned by: joern
Priority: major Milestone: 1.4
Component: plugin Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

Regarding jquery.validation 1.5.2...

All of the validation state is cleared when resetForm() is called, except lastElement. This results in a bug where after the form is reset, on keyup, the field is validated in real-time rather than when it's been left (focus out) or submitted. This bug seems to only come up if it's a single field form or it's the last field in the form.

We got around the bug by explicitly setting lastElement to null every time we call resetForm().

Attachments (0)
Change History (2)

Changed October 13, 2009 12:47AM UTC by dmethvin comment:1

component: unfilledplugin
owner: → joern

Changed February 05, 2010 08:31PM UTC by john comment:2

resolution: → invalid
status: newclosed

Please file plugin bugs with the appropriate author on their bug tracker.