Make WordPress Core

Changeset 42187 for trunk


Ignore:
Timestamp:
11/15/2017 06:11:17 PM (7 years ago)
Author:
westonruter
Message:

Customize: Prevent themes panel from auto-expanding in IE11.

In IE11 the input event erroneously gets triggered initially without any user input.

Amends [41648].
See #37661.
Fixes #42556 for trunk.

File:
1 edited

Legend:

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

    r42171 r42187  
    18681868                debounced = _.debounce( section.checkTerm, 500 ); // Wait until there is no input for 500 milliseconds to initiate a search.
    18691869                section.contentContainer.on( 'input', '.wp-filter-search', function() {
     1870                    if ( ! api.panel( 'themes' ).expanded() ) {
     1871                        return;
     1872                    }
    18701873                    debounced( section );
    18711874                    if ( ! section.expanded() ) {
Note: See TracChangeset for help on using the changeset viewer.