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

bug: DateRangePicker calendar does not move ahead to the month of minSelectable date #727

Open
Abg4real opened this issue May 23, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Abg4real
Copy link
Contributor

Describe the bug

When the date range provided by minSelectableDate and maxSelectableDate does not contain today's date, or next month's date in case of 2-months-view, the calendar does not move to months of that date range.

To Reproduce

  1. Add minSelectable date of 3 months from today.
  2. When selecting the date, calendar shows disabled dates.
  3. In order to select a valid date, the calendar needs to be forwarded to minSelectable month.
  4. If the minSelectable and maxSelectable are a month earlier than today's date, the error still persists.

Expected behavior

If the selectable date range starts in the previous or later month, then that month should be shown by default, when calendar selection is opened.

Screenshots

image

Package versions

  • @medly-components/core: 6.26.2
  • @medly-components/forms :
  • @medly-components/icons :
  • @medly-components/layout :
  • @medly-components/loaders :
  • @medly-components/theme :
  • @medly-components/utils :
@Abg4real Abg4real added the bug Something isn't working label May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant