Should datetime value be undefined when time value is deleted? #3876
-
When you provide any valid date and time value to It kind of messes up any form where dates are involved. You can set up validations, of course, but from a UI perspective, IMO, it doesn't make any sense at all. * edit |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
IMO this is normal behavior since your DatePicker's date value is no longer fully defined once you delete the time values and it feels important to distinguish that value state rather than substitute |
Beta Was this translation helpful? Give feedback.
-
@LFDanLu, after giving it a n-th though, I switched sides. Purely because clearing every single date/time field after deleting a value is counter-productive if you'd like to change a tiny part of it. Thank you again. |
Beta Was this translation helpful? Give feedback.
IMO this is normal behavior since your DatePicker's date value is no longer fully defined once you delete the time values and it feels important to distinguish that value state rather than substitute
0:00:00
. To clarify, is the DatePicker you have in your example case usegranularity="minute"
?