Skip to content

Commit bae22fb

Browse files
committed
Datepicker: Now uses zIndex() to determine zIndex for dpDiv on show (Fixed #4580 Datepicker appears underneath other widgets)
1 parent a8ef499 commit bae22fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/jquery.ui.datepicker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ $.extend(Datepicker.prototype, {
642642
css({left: -borders[0], top: -borders[1],
643643
width: inst.dpDiv.outerWidth(), height: inst.dpDiv.outerHeight()});
644644
};
645+
inst.dpDiv.zIndex($(input).zIndex()+1);
645646
if ($.effects && $.effects[showAnim])
646647
inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
647648
else

0 commit comments

Comments
 (0)