Skip to main content

Bug Tracker

Side navigation

#8156 closed bug (wontfix)

Opened February 03, 2011 12:48PM UTC

Closed July 12, 2011 05:39PM UTC

Last modified July 12, 2011 08:45PM UTC

show/hide in hidden div

Reported by: Owned by:
Priority: low Milestone:
Component: effects Version: 1.5
Keywords: Cc:
Blocked by: Blocking:

I'm trying to toggle the display of a div ('b') nested insite another div ('a') that can either be visible or hidden.

Using the toggle() function on 'b', it cannot be hidden if 'a' is hidden. Toggling works fine if 'a' is visible.

I have tried the same using DOM and it works fine.

See an example here:

Attachments (0)
Change History (5)

Changed February 03, 2011 04:07PM UTC by rwaldron comment:1

component: unfiledeffects
priority: undecidedlow
status: newopen


Click the buttons in this pattern to reproduce:


Changed February 03, 2011 04:18PM UTC by rwaldron comment:2

Changed July 12, 2011 05:39PM UTC by gnarf comment:3

resolution: → wontfix
status: openclosed

After taking a further look at this one, the behavior makes perfect sense. If you need to be toggling the display property on the element you can use

instead of

Changed July 12, 2011 08:34PM UTC by comment:4

It does not make sense to me. Then where will be no use of .toggle(), as you allways can use .show() and .hide().

In my case, I needed to toogle the display, and yes, I could do this in other ways, but why not fix the bug in the .toggle() so that it works as expected?

Changed July 12, 2011 08:45PM UTC by ajpiano comment:5

We are not fixing this "bug" because we do not believe it is a bug. toggle() of course has a usecase, it just can't be used to toggle the display of something that is itself inside of a hidden container.