Search and Top Navigation
#15229 new bug ()
Opened August 24, 2017 07:42AM UTC
Last modified August 24, 2017 07:42AM UTC
Datepicker z-index for a sticky ancestor
Reported by: | henkpb | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.datepicker | Version: | 1.12.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The z-index of the datepicker is based on the z-index of it's nearest stacked ancestor. This is handled in the datepicker_getZindex() function, where the ancestor is selected using its CSS position (absolute, relative or fixed).
In one of my projects, this function failed, causing the datepicker to appear behind the containing DIV. The reason for this was the DIV being positioned using the "sticky" value.
The solution is easy - include a test for the "sticky" positioning value in datepicker_getZindex().