WordPress.org

Make WordPress Core

Changeset 42188


Ignore:
Timestamp:
11/15/2017 06:12:27 PM (20 months 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 4.9.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/js/customize-controls.js

    r42172 r42188  
    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.