WordPress.org

Make WordPress Core

#38324 closed defect (bug) (fixed)

Menus screen: quick search input event needs to be delegated

Reported by: afercia Owned by: afercia
Milestone: 4.7 Priority: normal
Severity: normal Version:
Component: Menus Keywords: has-screenshots has-patch
Focuses: javascript Cc:

Description

On the menus screen, the post and taxonomies boxes on the left have a "search" tab. Go in one of those, and submit a search to get some results:

https://cldup.com/gjpV7IBWUD.png

Now go on the previous tab "View All" and click a couple times on the pagination links (be sure to have more than 50 posts/pages or categories otherwise the pagination links won't show up):

https://cldup.com/y75JY03zOP.png

Then go back to the search tab and submit a new search: nothing happens.

Attachments (1)

38324.diff (1007 bytes) - added by afercia 12 months ago.

Download all attachments as: .zip

Change History (3)

@afercia
12 months ago

#1 @afercia
12 months ago

  • Keywords has-patch added
  • Owner set to afercia
  • Status changed from new to assigned

#2 @afercia
12 months ago

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

In 38799:

Menus: Fix the posts-categories quick search.

On the Menus screen, events that trigger the posts-categories search need to be
delegated. This "boxes" may get dynamically rebuilt so events directly attached
to the search input field need to be delegated.

Fixes #38324.

Note: See TracTickets for help on using tickets.