You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set the DateTime picker in controlled or uncontrolled mode
set a default time in the timePickerProps
Select dates
Actual behaviour
The default time is set correctly in the time input, but when selecting the dates, it gets ignored.
Expected behaviour
Selecting the date should consider the default time being used.
Possible Solution
On selection, get the time values and apply them to the date selected.
Happy to look into it and open a PR.
Also, I would like to allow the independent setting of timePickerProps. A typical scenario where you want to set a different start and end time. but it is a different topic
The text was updated successfully, but these errors were encountered:
adidahiya
changed the title
DateTimePicker2: timePickerProps defaultValue is ignored
DateRangeInput2: timePickerProps defaultValue is ignored
Jan 5, 2023
Environment
Code Sandbox
https://codesandbox.io/s/little-dawn-x128py?file=/src/DatetimeExample.tsx
Steps to reproduce
Actual behaviour
The default time is set correctly in the time input, but when selecting the dates, it gets ignored.
Expected behaviour
Selecting the date should consider the default time being used.
Possible Solution
On selection, get the time values and apply them to the date selected.
Happy to look into it and open a PR.
Also, I would like to allow the independent setting of timePickerProps. A typical scenario where you want to set a different start and end time. but it is a different topic
The text was updated successfully, but these errors were encountered: