WordPress.org

Make WordPress Core

Changeset 42744


Ignore:
Timestamp:
02/25/2018 06:47:46 PM (4 months ago)
Author:
adamsilverstein
Message:

Customizer: in menus, reset results when closing the 'add items' panel.

Trigger a keyup event when clearing the search field in response to closing the add item panel. The keyup event triggers a search and resets the results. Previously, the search field was cleared while the potentially blank search results were left in place making it impossible to select new menu items.

Props Blair jersyer, aranwer104, afercia.
Fixes #43333.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-nav-menus.js

    r42403 r42744  
    728728            $( '#available-menu-items .menu-item-handle.item-added' ).removeClass( 'item-added' );
    729729
    730             this.$search.val( '' );
     730            this.$search.val( '' ).trigger( 'keyup' );
    731731        },
    732732
Note: See TracChangeset for help on using the changeset viewer.