Skip to content

Commit 423a4da

Browse files
committed
Fixed issue 25910 choose drop down not close when open another
1 parent ad6c093 commit 423a4da

File tree

1 file changed

+4
-1
lines changed
  • app/code/Magento/Swatches/view/adminhtml/web/js

1 file changed

+4
-1
lines changed

app/code/Magento/Swatches/view/adminhtml/web/js/visual.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,10 @@ define([
404404
* Toggle color upload chooser
405405
*/
406406
$(document).on('click', '.swatch_window', function () {
407-
$(this).next('div').toggle();
407+
var currentElement = $(this).next('div');
408+
409+
jQuery('.swatch_sub-menu_container').not(currentElement).hide();
410+
currentElement.toggle();
408411
});
409412
});
410413
};

0 commit comments

Comments
 (0)