Skip to main content

Bug Tracker

Side navigation

#2359 closed bug (fixed)

Opened February 18, 2008 11:17AM UTC

Closed June 10, 2009 09:04AM UTC

[validate] Error message labels that are hidden then re-displayed are given block display mode

Reported by: kapowaz Owned by: joern
Priority: major Milestone: 1.2.2
Component: plugin Version: 1.2.1
Keywords: validate Cc:
Blocked by: Blocking:
Description

When using the Validation plugin, if error messages are set to be displayed inside of an inline element (including the default, labels) and the error message is hidden then shown a second time, then although that element is generated at first with the default inline display property, on subsequent occasions the element is given a display mode of block. This appears as though it could be a bug in the jQuery implementation of

.show()
, although this is apparently supposed to use the previous state of the element in question.

I've attached a patch which fixes the issue for the default error display of labels (or indeed, any inline element) but this will need to be modified to correctly redisplay errors that are intended to be contained within block display elements. Unless of course the problem really is with the jQuery

.show()
method, in which case I suppose it ought to be fixed upstream instead.

Attachments (1)
  • jquery.validate.js.diff (0.2 KB) - added by kapowaz February 18, 2008 11:18AM UTC.

    jQuery/Validation plugin 1.2.1 patch

Change History (3)

Changed February 18, 2008 09:29PM UTC by joern comment:1

owner: → joern

Changed February 18, 2008 09:30PM UTC by joern comment:2

milestone: → 1.2.2
version: → 1.2.1

Changed June 10, 2009 09:04AM UTC by joern comment:3

resolution: → fixed
status: newclosed

Afaik this is fixed in jQuery core, can't reproduce the problem with current versions.