Bug Tracker

Modify

Ticket #4441 (closed bug: invalid)

Opened 4 years ago

Last modified 3 years ago

[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: cnelson@…
Blocking: Blocked by:

Description

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().

Change History

comment:1 Changed 4 years ago by dmethvin

  • Owner set to joern
  • Component changed from unfilled to plugin

comment:2 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.