react-multi-date-picker icon indicating copy to clipboard operation
react-multi-date-picker copied to clipboard

Reset selected date before submitting OK button on mobile

Open nazaninroozbahani opened this issue 2 years ago • 0 comments

I'm using mobile classnames and a custom mobile button: mobileButtons={[ { label: "حذف", type: "button", className: "rmdp-button rmdp-action-button", onClick: {() => { setValue(undefined); datePickerRef.current.currentDate = {}; datePickerRef.current.closeCalendar(); }}, }, ]} but this reset just working after pressing OK button and by reset input resets but datepicker opens with previousely selected date. Thank you in advance.

nazaninroozbahani avatar Oct 29 '23 12:10 nazaninroozbahani