Opened 11 years ago
Closed 11 years ago
#32677 closed defect (bug) (fixed)
Customizer Menus: Accordion toggle in available menu items panel fails on first attempt after a search
| Reported by: | tywayne | Owned by: | ocean90 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.3 |
| Component: | Customize | Version: | 4.3 |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: |
Description
Steps to reproduce:
- Click Add Items when editing a menu
- Use the search field, doesn't matter if it returns results or not.
- Attempt to toggle one of the accordion items below.
gif of process here: https://cloudup.com/c2w8vM4sheu
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
After looking further, it appears this is happening because we're triggering
debounceSearchon both theinputandchangeevents. 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.AvailableMenuItemsPanelViewseems to fix it, but it may be there for a reason I'm not seeing.