[wp-trac] [WordPress Trac] #32841: Partial refresh <div> in menu customizer breaks some theme designs

WordPress Trac noreply at wordpress.org
Sat Jul 4 00:50:10 UTC 2015


#32841: Partial refresh <div> in menu customizer breaks some theme designs
-------------------------------------+--------------------------
 Reporter:  greenshady               |       Owner:  westonruter
     Type:  defect (bug)             |      Status:  accepted
 Priority:  normal                   |   Milestone:  4.3
Component:  Customize                |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  javascript
-------------------------------------+--------------------------

Comment (by greenshady):

 It's close.  It fixes the primary issue I opened this ticket for.

 However, the issue with the patch is that it wipes JS-added attributes
 from the element when adding/removing items.  For example, there's a
 `style="display:none;"` or `style="display:block;"` on the element there,
 which gets wiped.  Same with a jQuery-added `.open` or `.close` class.

 Here's the original:

 {{{
 <div class="wrap partial-refreshable-nav-menu-1 partial-refreshable-nav-
 menu open" style="display:block;">
 }}}

 After adding/removing an item, it becomes this:

 {{{
 <div class="wrap partial-refreshable-nav-menu-1 partial-refreshable-nav-
 menu">
 }}}

 The `open` class and `style` attribute is gone.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32841#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list