[wp-trac] [WordPress Trac] #30251: Customizer inconsistent contextual behavior

WordPress Trac noreply at wordpress.org
Wed Nov 5 18:22:33 UTC 2014


#30251: Customizer inconsistent contextual behavior
--------------------------+-------------------------
 Reporter:  dgwyer        |       Owner:  ocean90
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  4.1
Component:  Customize     |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+-------------------------
Changes (by westonruter):

 * keywords:  needs-patch => has-patch
 * owner:  westonruter => ocean90
 * status:  assigned => reviewing


Comment:

 In [attachment:30251.diff]:

  * Use `jQuery.fn.toggle()` instead of `slideUp`/`slideDown` if
 panel/section/control is not inserted into DOM yet.

 Made an improvement to the sample theme to help demonstrate toggling the
 control from inactive to active, and back again:
 https://gist.github.com/westonruter/2180ab8624a210e6eefb/revisions

 The problem is that jQuery seems to do nothing when calling `slideUp` on
 elements that are not inserted into the DOM yet, which can now be the case
 now when first loading the Customizer as the panels, sections, controls
 get dynamically inserted.

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


More information about the wp-trac mailing list