Skip to content

Commit

Permalink
Fix date range end picker (#6413)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 authored Oct 6, 2023
1 parent 9d26e02 commit 6558eb7
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/Components/Common/DateInputV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const DateInputV2: React.FC<Props> = ({
)
);
close();
setIsOpen?.(false);
};

const getDayCount = (date: Date) => {
Expand Down Expand Up @@ -212,13 +213,7 @@ const DateInputV2: React.FC<Props> = ({
<Popover className="relative">
{({ open, close }) => (
<div>
<Popover.Button
disabled={disabled}
className="w-full"
onClick={() => {
setIsOpen?.(!isOpen);
}}
>
<Popover.Button disabled={disabled} className="w-full">
<input type="hidden" name="date" />
<input
id={id}
Expand All @@ -237,9 +232,6 @@ const DateInputV2: React.FC<Props> = ({

{(open || isOpen) && (
<Popover.Panel
onBlur={() => {
setIsOpen?.(false);
}}
static
className={classNames(
"cui-dropdown-base absolute mt-0.5 w-72 divide-y-0 p-4",
Expand Down

0 comments on commit 6558eb7

Please sign in to comment.