DataPicker
ssageghi opened this issue · 3 comments
ssageghi commented
Hi
I have a sign-up process that user choose birthday and it's fine
but I want to use DataPicker in edit menu of user that sign-up
how can I show the previous value of birthday and then change it?
thank for your help
thg303 commented
same issue here. looks like can't re-assign value from moment object
thg303 commented
Assign "defaultValue" instead of "value". checkout this example:
<DatePicker
onChange={value => { setValue('birthday', value) }}
defaultValue={moment()}
/>
ssageghi commented
thank you
it's working