Skip to content

Commit

Permalink
Merge pull request vitmalina#1751 from CherryDT/fix-1616
Browse files Browse the repository at this point in the history
Allow clicking inside other overlays which belong to the elements inside this overlay (fixes vitmalina#1616)
  • Loading branch information
vitmalina authored Apr 23, 2018
2 parents ec67d15 + 6668b77 commit 69660a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/w2utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2502,6 +2502,8 @@ w2utils.event = {
function hide(event) {
if (event && event.button !== 0) return; // only for left click button
var div1 = $('#w2ui-overlay'+ name);
// Allow clicking inside other overlays which belong to the elements inside this overlay
if (event && $($(event.target).closest('.w2ui-overlay').data('element')).closest('.w2ui-overlay')[0] === div1[0]) return;
if (div1.data('keepOpen') === true) {
div1.removeData('keepOpen');
return;
Expand Down

0 comments on commit 69660a5

Please sign in to comment.