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. git-svn-id: https://develop.svn.wordpress.org/trunk@34557 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9490539e89
commit
6db8b9279e
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user