DatePicker: Not disabling dates out of range after a selection is made
See original GitHub issueDetailed 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
- 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.
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:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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/
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.