TimePicker optional default value conflicts with initial value implementation #21824
Labels
Component: TimePicker
Resolution: Soft Close
Soft closing inactive issues over a certain period
Type: Bug 🐛
Environment Information
Describe the issue:
Per implementation the TimePicker initial value will default to either the provided
defaultValue
prop or it will automatically set to the current date time. This makes it impossible to provide a time input for an optional field as it will always be providing a value.Actual behavior:
Even when no
defaultValue
set initial value is set to nowExpected behavior:
When no
defaultValue
provided the component should not have any valueDocumentation describing expected behavior
Provide a solution by changing the api to support optional value for the input
The text was updated successfully, but these errors were encountered: