Skip to content

Commit

Permalink
BAP-11656: dont use dropdown mask for multiselect that attached to no…
Browse files Browse the repository at this point in the history
… body
  • Loading branch information
dmitrosh committed Sep 5, 2016
1 parent e66a7df commit 7a66866
Showing 1 changed file with 10 additions and 8 deletions.
Expand Up @@ -20,16 +20,18 @@ define([
this.refresh();
}
this._superApply(arguments);
if (!this.options.appendTo) {
this.menu.css('zIndex', '');
var zIndex = Math.max.apply(Math, this.element.parents().add(this.menu).map(function() {
var zIndex = Number($(this).css('zIndex'));
return isNaN(zIndex) ? 0 : zIndex;
}));

this.menu.css('zIndex', '');
var zIndex = Math.max.apply(Math, this.element.parents().add(this.menu).map(function() {
var zIndex = Number($(this).css('zIndex'));
return isNaN(zIndex) ? 0 : zIndex;
}));
this.menu.css('zIndex', zIndex + 2);

this.menu.css('zIndex', zIndex + 2);
mask.show(zIndex + 1)
.onhide($.proxy(this.close, this));
mask.show(zIndex + 1)
.onhide($.proxy(this.close, this));
}
},

/**
Expand Down

0 comments on commit 7a66866

Please sign in to comment.