Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix date range end picker #6413

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading