Customizer: Fix usage of `jQuery.contains()` allowing `active` state changes to again animate control visibility.
Aligns usage of `jQuery.contains()` in a control's `onChangeActive` method with the existing usage in the corresponding `onChangeActive` method for panels and sections. Props nikeo. Fixes #33509. Built from https://develop.svn.wordpress.org/trunk@34557 git-svn-id: http://core.svn.wordpress.org/trunk@34521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e3dd4b7f4f
commit
885944f79f
|
@ -1535,7 +1535,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
if ( ! $.contains( document, this.container ) ) {
|
||||
if ( ! $.contains( document, this.container[0] ) ) {
|
||||
// jQuery.fn.slideUp is not hiding an element if it is not in the DOM
|
||||
this.container.toggle( active );
|
||||
if ( args.completeCallback ) {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-34556';
|
||||
$wp_version = '4.4-alpha-34557';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue