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.

Selecting past dates from the input field is not working

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

3reactions
Henriklimsethcommented, Oct 8, 2018

Any update on that patch release?

1reaction
majapwcommented, Oct 12, 2018

v18.1.1 is out! I must have gotten distracted 😬Thank you for your patience!

Read more comments on GitHub >

github_iconTop 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 >

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