isInvalidDate still allow for selecting a range on either side of the invalid date.
See original GitHub issueThis is perhaps a tricky issue as, perhaps you want to allow people to do that (ie. blocking out weekends, but allowing people to still select that range).
In which case - the user could apply their own ‘unselect the range’ function with datesUpdated
- but for the inline picker this means you need to be able to set the set the start date and end date as inputs.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Date range picker - invalid date - Stack Overflow
I use this code and it works perfectly. Date 11/12/2015 is disabled and users can't select it. isInvalidDate: function(date) ...
Read more >4.4. Validate Traditional Date Formats - O'Reilly
You want to use a simple regex that simply checks whether the input looks like a date, without trying to weed out things...
Read more >useRangeCalendar – React Aria - React Spectrum Libraries
Touch friendly – Date ranges can be selected by dragging over dates in the ... isInvalid, boolean, Whether the cell is part of...
Read more >Date Range Picker for Bootstrap
EVENTS is an array with the dates that should go inside the calendar. action.isInvalidDate = function (date) { let invalid = false; EVENTS.forEach((event)...
Read more >RangeError: invalid date - JavaScript - MDN Web Docs
The JavaScript exception "invalid date" occurs when a string leading to an invalid date has been provided to Date or Date.parse().
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
About this issue, if i select a range of dates and there are some disabled in said range, the result should be the full range in any case with the disabled dates showed in the calendar.
Can you fix it please?
I think there should be two options.
The first is that it returns a list of dates within the range, excluding the invalid dates.
The second is that it’s an invalid selection.
On Fri, 19 Oct 2018, 6:00 PM Fetrarijaona R., notifications@github.com wrote: