evandhq/react-persian-datepicker

DataPicker

ssageghi opened this issue · 3 comments

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

same issue here. looks like can't re-assign value from moment object

Assign "defaultValue" instead of "value". checkout this example:

<DatePicker
 onChange={value => {  setValue('birthday', value) }}
 defaultValue={moment()}
/>

thank you
it's working