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
{{ message }}
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
Not a big deal, but it seems that the logic to show/hide the clear icon is behaving differently after the first valid value is passed to a rendered DatePickerInput:
initial render with value=undefined -> no icon
subsequent renders with value=undefined, after value was set to a valid date at least once -> icon is shown
how to reproduce
using DatePickerInput statelessly with value, onChange and onClear props..
render DatePickerInput with value: undefined
update with value set to a valid date
click on clear icon (call onClear)
DatePickerInput is re-rendered with value: undefined, but the clear icon remains visible
specs
{optional: describe a possible fix for this defect, if not obvious}
misc
{optional: other useful info}
The text was updated successfully, but these errors were encountered:
description
Not a big deal, but it seems that the logic to show/hide the clear icon is behaving differently after the first valid value is passed to a rendered
DatePickerInput
:how to reproduce
using
DatePickerInput
statelessly withvalue
,onChange
andonClear
props..DatePickerInput
withvalue: undefined
value
set to a valid dateonClear
)DatePickerInput
is re-rendered withvalue: undefined
, but the clear icon remains visiblespecs
{optional: describe a possible fix for this defect, if not obvious}
misc
{optional: other useful info}
The text was updated successfully, but these errors were encountered: