[wp-trac] [WordPress Trac] #32677: Customizer Menus: Accordion toggle in available menu items panel fails on first attempt after a search

WordPress Trac noreply at wordpress.org
Wed Jun 17 19:50:30 UTC 2015


#32677: Customizer Menus: Accordion toggle in available menu items panel fails on
first attempt after a search
--------------------------+------------------------------
 Reporter:  tywayne       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Customize     |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by tywayne):

 After looking further, it appears this is happening because we're
 triggering `debounceSearch` on both the `input` and `change` events. Is
 there a reason we need to trigger a search on both of those events? The
 change event is firing when the input loses focus, thus opening the search
 results again.

 Removing the change event in `api.Menus.AvailableMenuItemsPanelView` seems
 to fix it, but it may be there for a reason I'm not seeing.

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


More information about the wp-trac mailing list