Bug Tracker

Modify

Ticket #781 (closed bug: fixed)

Opened 7 years ago

Last modified 7 years ago

1.1b : $(this).siblings().toggle(); changes all inline siblings (after first sibling) to block level elements

Reported by: jonathanfreeman@… Owned by:
Priority: major Milestone: 1.1a
Component: core Version: 1.1a
Keywords: Cc:
Blocking: Blocked by:

Description (last modified by joern) (diff)

Before click:

<a class="toggle expand" href="#">Marketing Messages</a>
<a class="shrink" href="#">-</a>
<a class="stretch" href="#">+</a>
<a class="explode" href="#">=</a>
<em>hi</em>

After click

<a class="toggle expand" href="#">Marketing Messages</a>
<a class="shrink" href="#" style="display: inline;">-</a>
<a class="stretch" href="#" style="display: block; opacity: 0.9999;">+</a>
<a class="explode" style="display: block; opacity: 0.9999;" href="#">=</a>
<em style="display: block; opacity: 0.9999;">hi</em>

Change History

comment:1 Changed 7 years ago by joern

  • Description modified (diff)

comment:2 Changed 7 years ago by joern

Until fixed, try to toggle the (block level) parent as a workaround.

comment:3 Changed 7 years ago by jonathanfree

I wish I could, but I use this situation when I toggle fieldset contents on a form. :-( I keep the 1st href as the controller, then toggle the siblings and its parent's fieldset form fields.

<legend> <a class="toggle expand" href="#">Marketing Messages</a> <a class="shrink" href="#">-</a> <a class="stretch" href="#">+</a> <a class="explode" href="#">=</a> </legend>

comment:4 Changed 7 years ago by jonathanfree

jQ 1.1.1 has resolved this bug. This should be moved to FIXED. Nice work :)

comment:5 Changed 7 years ago by joern

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

Fixed.

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.