Hi there,
I am using DateInput/DatePicker component. Below is my code with the state myDate
<DatePickerInput
id="my-date-picker"
label="Date picker"
defaultValue={myDate}
onSelectedDayChange={setMyDate}
/>
The use-case is that the myDate value can be either typed or picked from the calendar by the user or re-calculated from other actions of the parent component. But when updating the myDate value, the date value displayed in the DateInput is still the first one that I pass to the component.
Is there any way I can do to get the behavior I want?
Thank you