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

X2-8716 Reports: Unable to select date that falls after selected relative date range #305

Merged
merged 9 commits into from
Feb 26, 2024

Conversation

khomyakov
Copy link
Contributor

No description provided.

@@ -27,100 +27,70 @@ const RangeDatePicker = ({
...rest
}) => {
const isStartDateIsTheSameMonth = dayjs(value?.from).isSame(dayjs(value?.to), "month");
const isSingleDayDateRange = dayjs(value?.from).isSame(dayjs(value.to), "day");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the ticket, it seems happening when they select within single month range.
we might need to handle the case too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was caused by isStartDateIsTheSameMonth, will remove it from the disable function, as it's not well thought through

@tanushreec tanushreec merged commit d91fd3d into xola:master Feb 26, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants