Skip to content

Commit

Permalink
Merge branch 'xola:master' into X2-7128
Browse files Browse the repository at this point in the history
  • Loading branch information
kirtesh-xola authored Sep 25, 2023
2 parents 60c6139 + 33f31e1 commit 27451f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/DatePicker/DatePickerPopover.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const DatePickerPopover = ({
value,
variant = "single",
dateFormat = "ddd, LL",
placeholder = "Select Date",
onChange,
children,
classNames = {},
Expand Down Expand Up @@ -66,6 +67,7 @@ export const DatePickerPopover = ({
readOnly
size="medium"
value={value ? formatDate(value, dateFormat) : ""}
placeholder={placeholder}
className={classNames?.input}
onClick={toggleVisibility}
/>
Expand Down Expand Up @@ -103,7 +105,7 @@ const DefaultInput = forwardRef(({ className, ...rest }, reference) => {
<CalendarIcon className="z-10 inline-block" />
</div>

<Input className={clsx("cursor-pointer px-8", className)} placeholder="Select Date" {...rest} />
<Input className={clsx("cursor-pointer px-8", className)} {...rest} />

<div className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3">
<DownArrowIcon className="inline-block" />
Expand Down

0 comments on commit 27451f4

Please sign in to comment.