Skip to content
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

🐛 No timepicker is shown if startDate is NULL or undefined. #27

Open
cmjoseph07 opened this issue Jun 18, 2024 · 0 comments
Open

🐛 No timepicker is shown if startDate is NULL or undefined. #27

cmjoseph07 opened this issue Jun 18, 2024 · 0 comments
Labels
Type: Bug Something isn't working

Comments

@cmjoseph07
Copy link

cmjoseph07 commented Jun 18, 2024

Describe the bug
If I have a datepicker component like the example REPL, if I change startDate = new Date() to startDate = NULL and click on the input field, no timepicker is shown. However, I have an action onDayClick so I have to click the input field twice if I want to set something with no initial date.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Use the timepicker example
  3. Change the startDate to an undefined or NULL value
  4. See that timepicker no longer appears

Expected behavior
Expect timepicker to still be there so I can pick time than pick date which has an action on it.

Or could you advise me how to clear formattedStartDate if nothing is selected?

image

@cmjoseph07 cmjoseph07 added the Type: Bug Something isn't working label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant