Skip to content

Commit 5d22f37

Browse files
committed
Fix z index bug
1 parent 5dd75ae commit 5d22f37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Datepicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ const Datepicker: React.FC<Props> = ({primaryColor = "blue", value = null, onCha
206206
<div className="relative w-full text-gray-700" ref={containerRef}>
207207
<Input/>
208208

209-
<div className="transition-all ease-out duration-300 absolute mt-[1px] text-sm lg:text-xs 2xl:text-sm translate-y-4 opacity-0 hidden" ref={calendarContainerRef}>
209+
<div className="transition-all ease-out duration-300 absolute z-10 mt-[1px] text-sm lg:text-xs 2xl:text-sm translate-y-4 opacity-0 hidden" ref={calendarContainerRef}>
210210
<Arrow ref={arrowRef}/>
211211

212212
<div className="mt-2.5 shadow-sm border border-gray-300 px-1 py-0.5 bg-white dark:bg-slate-800 dark:text-white dark:border-slate-600 rounded-lg">

0 commit comments

Comments
 (0)