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

DateRangePicker: Ok button stays disabled selecting fixed range #2553

Closed
akrutsko-intellective opened this issue Jun 20, 2022 · 0 comments · Fixed by #2564
Closed

DateRangePicker: Ok button stays disabled selecting fixed range #2553

akrutsko-intellective opened this issue Jun 20, 2022 · 0 comments · Fixed by #2564

Comments

@akrutsko-intellective
Copy link

What version of rsuite are you using?

5.15.0

What version of React are you using?

"^17.0.2 || ^18.1.0"

What version of TypeScript are you using (if any)?

No response

What browser are you using?

Chrome Version 102.0.5005.115 (Official Build) (64-bit)

Describe the Bug

When you start selecting range manually and define only one start date in DateRangePicker component. Predefined fixed rages does not work. Calendar and headers shows proper values for fixed range click. But "Ok" button stays disabled for any fixed range click.

Expected Behavior

After fixed range click - "Ok" button enabled and it is possible to save value and continue.

To Reproduce

  1. Open DateRangePicker component with no value selected | provided - ("Ok" button disabled)
  2. Click on any date once (start selecting range manually) - ("Ok" button disabled)
  3. Click on any predefined fixed range in bottom bar, for instance "Last 7 Days"
  4. Values are selected, header shows dates and calendar draws dates interval as expected

But!

Expected result: "Ok" button enabled and it is possible to save value and continue
Actual result: "Ok" button stays disabled.

chrome_wLe7kIrgTH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants