Date-pickers should be displayed on top of other widgets

This commit is contained in:
navaneeth 2021-05-23 21:34:56 +05:30
parent e494233c1b
commit 17ed92cb4f

View file

@ -34,7 +34,7 @@ function getStyles(left, top, isDragging, component) {
position: 'absolute',
transform,
WebkitTransform: transform,
zIndex: component.component === 'DropDown' ? 2 : 1,
zIndex: ['DropDown', 'Datepicker', 'DaterangePicker'].includes(component.component) ? 2 : 1,
// IE fallback: hide the real node using CSS when dragging
// because IE will ignore our custom "empty image" drag preview.
opacity: isDragging ? 0 : 1,