From 540567b7d3f1f03ec13d2ebcec79e46004695f26 Mon Sep 17 00:00:00 2001 From: Geert De Deckere Date: Tue, 20 Mar 2012 15:59:04 +0100 Subject: [PATCH] Follow-up to 47f57504bdfb43d0672e811f91a6412ce77cbb29 #814 --- assets/js/admin/write-panels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/admin/write-panels.js b/assets/js/admin/write-panels.js index ba6a650c2d1..36a82c75905 100644 --- a/assets/js/admin/write-panels.js +++ b/assets/js/admin/write-panels.js @@ -570,7 +570,7 @@ jQuery( function($){ // Open/close 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 ($(event.target).is(':input')) return; + if ($(event.target).filter(':input, option').length) return; jQuery(this).next('.wc-metabox-content').toggle(); });