question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DatePicker: Not disabling dates out of range after a selection is made

See original GitHub issue

Detailed description

Describe in detail the issue you’re having.

  • No dates selected / set in the date picker:
    • You can see which dates are allowed to be selected as expected and user can select them

image

  • The moment a single selection is made the disabled date options look enabled even though the component doesn’t let you select them. This is very confusing for a user who no longer knows what the valid range for selection is anymore.

image

Is this a feature request (new component, new icon), a bug, or a general issue?

  • Bug

Is this issue related to a specific component?

  • Date Picker

What did you expect to happen? What happened instead? What would you like to see changed?

  • Expect the disabled dates to remain disabled when the user is making a selection, has made a selection or is attempting to change their selection.

What browser are you working in?

  • Chrome

What version of the Carbon Design System are you using?

  • Latest. See Reproduction

What offering/product do you work on? Any pressing ship or release dates we should be aware of?

  • CS360 + others. We are opting to not use this component for the time being but would’ve liked to.

Steps to reproduce the issue

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
virkt25commented, Jun 5, 2020

Also for the date range picker I feel like the behaviour needs to be modified to be more intuitive for users.

If a user is trying to make a new selection they should be forced to select both options again. A good example of this can be seen in this demo (which is also using flatpickr). https://mattlewis92.github.io/angularx-flatpickr/

0reactions
zvonimirfrascommented, Jan 14, 2021

Per Doni’s comment, it looks like it’s been resolved in one of the later versions. Feel free to reopen with more info if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable/Enable selected date range on jQuery datepicker UI
What I want to do is disable the dates once the user has selected them so they can see on the calender picker...
Read more >
Show Out-of-Range DatePicker Dates as Disabled - Kendo UI ...
Solution. The following example demonstrates how to show the dates that are out of the min-max range as disabled by using the k-disabled...
Read more >
Disable date range suddenly fail to work
Hello Jotform Support,Previously I have a setting to disable the availability of my datepicker 1 day after today (e.g. if today is Tuesday, ......
Read more >
Disable a date range in lightning datepicker
It works fine and it shows the calendar but now I want to allow the user to only select a specific range of...
Read more >
Lock date range for selection - Power Platform Community
As I said, no way to disable some date in a DatePicker. That's means that if you want to let your users select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found