Merge pull request #857 from GeertDD/fix_metabox_toggle
Fix metabox toggle
This commit is contained in:
commit
7087f92ff1
|
@ -570,7 +570,7 @@ jQuery( function($){
|
||||||
// Open/close
|
// Open/close
|
||||||
jQuery('.wc-metaboxes-wrapper').on('click', '.wc-metabox h3', function(event){
|
jQuery('.wc-metaboxes-wrapper').on('click', '.wc-metabox h3', function(event){
|
||||||
// If the user clicks on some form input inside the h3, like a select list (for variations), the box should not be toggled
|
// If the user clicks on some form input inside the h3, like a select list (for variations), the box should not be toggled
|
||||||
if ($(event.target).is(':input')) return;
|
if ($(event.target).filter(':input, option').length) return;
|
||||||
|
|
||||||
jQuery(this).next('.wc-metabox-content').toggle();
|
jQuery(this).next('.wc-metabox-content').toggle();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue