shahabyazdi / react-multi-date-picker

a simple React datepicker component for working with gregorian, persian, arabic and indian calendars
https://shahabyazdi.github.io/react-multi-date-picker/
MIT License
826 stars 101 forks source link

After giving prop onOpenPickNewDate = false, whenever there is a re render the older date is shown #217

Open ananthastaputra opened 1 year ago

ananthastaputra commented 1 year ago

Hii, Current date or time is set on first time open, I came to know a prop needed to be added onOpenPickNewDate = false , After setting this prop to false whenever there is a re render the older state value is not getting vanished.

Thankyou

shahabyazdi commented 1 year ago

Hi Sorry for the late answer. Unfortunately, I did not understand what you mean, Could you please provide a minimal CodeSandbox example that demonstrates the bug you are seeing? I'd be happy to take a look and see if I can spot the cause.