Selecting past dates from the input field is not working
See original GitHub issueI’m using react-dates with the prop isOutsideRange={() => false}. This enables me to select days in the past from the calendar by clicking on them, but not by typing in the input field.
I.e. typing “09/01/2018” does not update the calendars state.
The issue can be observed in your Storybook when choosing “allow all days, including past days” under SDP - Day Props: After typing a past date in the input field the calendar does not close, and the date is not highlighted.
Is there something I’m missing, or a different prop that needs to passed to allow for typing past dates in the input field?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
How do I restrict past dates in HTML5 input type Date?
You can try this var maxDate = year + '-' + month + '-' + day; alert(maxDate); $('#txtDate').attr('min', maxDate);.
Read more ><input type="date"> - HTML: HyperText Markup Language
If both the max and min attributes are set, this value must be a date string earlier than or equal to the one...
Read more >Disable past dates from datepicker in powerapps
Solved: Hi Experts, In my App, where I datepicker field coming from sharepoint list. I want disable the past dates , user should...
Read more >Hiding dates earlier than today on lightning-input field
I looked at disabled option but I am not sure how to use it to disable previous dates. <lightning-input type="date" name="input7" label=" ...
Read more >Forms: Prevent selecting past dates from date field
The date selector allows past dates, no way to prevent previous dates from being selected. How to disable previous dates from being selected...
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 Free
Top 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

Any update on that patch release?
v18.1.1 is out! I must have gotten distracted 😬Thank you for your patience!