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: | thomas@fagerholt.dk | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | effects | Version: | 1.5 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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: http://jsfiddle.net/SuKNh/
Attachments (0)
Change History (5)
Changed February 03, 2011 04:07PM UTC by comment:1
component: | unfiled → effects |
---|---|
priority: | undecided → low |
status: | new → open |
Changed February 03, 2011 04:18PM UTC by comment:2
Changed July 12, 2011 05:39PM UTC by comment:3
resolution: | → wontfix |
---|---|
status: | open → closed |
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
.show()and
.hide()instead of
.toggle().
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 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.
Confirmed.
Click the buttons in this pattern to reproduce:
A B A B A