mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@42187 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1867,6 +1867,9 @@
|
||||
// Search terms.
|
||||
debounced = _.debounce( section.checkTerm, 500 ); // Wait until there is no input for 500 milliseconds to initiate a search.
|
||||
section.contentContainer.on( 'input', '.wp-filter-search', function() {
|
||||
if ( ! api.panel( 'themes' ).expanded() ) {
|
||||
return;
|
||||
}
|
||||
debounced( section );
|
||||
if ( ! section.expanded() ) {
|
||||
section.expand();
|
||||
|
||||
Reference in New Issue
Block a user