-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datepicker crashes with non-standard time intervals #2169
Comments
Afrothundr
pushed a commit
to Afrothundr/react-datepicker
that referenced
this issue
Jun 5, 2020
added more logic to time.jsx to account for non standard time intervals resolves Hacker0x01#2169
martijnrusschen
pushed a commit
that referenced
this issue
Jun 6, 2020
added more logic to time.jsx to account for non standard time intervals resolves #2169 Co-authored-by: Branford Harris <[email protected]>
saltire
added a commit
to saltire/react-datepicker
that referenced
this issue
Aug 21, 2020
…01#2262) Centers the time window on the nearest time before or equal to the active time, regardless of its hour.
saltire
added a commit
to saltire/react-datepicker
that referenced
this issue
Aug 21, 2020
…01#2262) Centers the time window on the nearest time before or equal to the active time, regardless of its hour.
martijnrusschen
pushed a commit
that referenced
this issue
Aug 22, 2020
p-rogas
pushed a commit
to p-rogas/react-datepicker
that referenced
this issue
Mar 22, 2023
added more logic to time.jsx to account for non standard time intervals resolves Hacker0x01#2169 Co-authored-by: Branford Harris <[email protected]>
p-rogas
pushed a commit
to p-rogas/react-datepicker
that referenced
this issue
Mar 22, 2023
…01#2262) (Hacker0x01#2350) Centers the time window on the nearest time before or equal to the active time, regardless of its hour.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using the time select functionality of the datepicker with non-standard time intervals i.e. (18, 27, 40), the datepicker crashes with a runtime error when opened during the first half of the current hour.
To Reproduce
Steps to reproduce the behavior:
Input Time
exampleTypeError: Cannot read property 'offsetTop' of undefined
Expected behavior
Should open the datepicker with correct time intervals and auto scrolled to the current time.
Screenshots
Desktop (please complete the following information):
Additional context
Seems to cause an error during the first half of the current hour
The text was updated successfully, but these errors were encountered: