Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Commit 9c390a3

Browse files
committed
fixed: zIndex when using dialog (new version backport)
1 parent 7a22385 commit 9c390a3

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -822,18 +822,16 @@ $.widget("ui.selectmenu", {
822822
var _offset = "0 -" + ( selected.outerHeight() + selected.offset().top - this.list.offset().top );
823823
}
824824
// update zIndex if jQuery UI is able to process
825-
var zIndexElement = this.element.zIndex();
826-
if ( zIndexElement ) {
827-
this.listWrap.css( 'zIndex', zIndexElement );
828-
}
829-
this.listWrap.position({
830-
// set options for position plugin
831-
of: o.positionOptions.of || this.newelement,
832-
my: o.positionOptions.my,
833-
at: o.positionOptions.at,
834-
offset: o.positionOptions.offset || _offset,
835-
collision: o.positionOptions.collision || 'flip'
836-
});
825+
this.listWrap
826+
.zIndex( this.element.zIndex() + 1 )
827+
.position({
828+
// set options for position plugin
829+
of: o.positionOptions.of || this.newelement,
830+
my: o.positionOptions.my,
831+
at: o.positionOptions.at,
832+
offset: o.positionOptions.offset || _offset,
833+
collision: o.positionOptions.collision || 'flip'
834+
});
837835
}
838836
});
839837

0 commit comments

Comments
 (0)