Opened 6 years ago

#15229 new bug

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:


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().

Change History (0)

Note: See TracTickets for help on using tickets.