react-tailwindcss-datepicker icon indicating copy to clipboard operation
react-tailwindcss-datepicker copied to clipboard

Datepicker PopOver Display conflict with Tables Sticky class.

Open thesarwars opened this issue 1 year ago • 2 comments

I'm facing issue when datepicker dialogue box opened. It is got behind when tables header is set 'sticky top-0 z-10'. I couldn't find any modification over the diaalogue box. It will good, if you put options to modify the 'dialogue box' too.

For your convenience I also provided my tables code sample:

<thead className="sticky top-1 z-20 divide-gray-400 divide-y">
<tr>
<th
scope="col"
className="px-4 py-2 text-start text-xs font-medium uppercase text-gray-700 sticky left-0 bg-gray-200"
>
SN
</th>
<th
scope="col"
className="px-2 py-2 text-start text-xs font-medium uppercase text-gray-700 sticky left-[50px] bg-gray-200"
>
Order Date
</th>
<th
scope="col"
className="px-4 py-2 text-start text-xs font-medium uppercase text-gray-700 sticky left-[144px] bg-gray-200"
>
Amazon Order Id
</th>
<th
scope="col"
className="px-4 py-2 text-start text-xs font-medium uppercase text-gray-700 sticky left-[325px] bg-gray-200"
>
Order Status
</th>
</tr>
</thead>

issue

thesarwars avatar Jun 26 '24 13:06 thesarwars

You can modify the z index of the dialog box container with the popupClassName props as follows


popupClassName={(defaultClass) => `${defaultClass} z-20`}

onesine avatar Aug 16 '24 13:08 onesine

@onesine Where is this prop - is it in a newer version? I can't see it in the source code for the released 1.6.6

Inlustra avatar Aug 17 '24 22:08 Inlustra