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
766 stars 90 forks source link

isDirty not updating on onChange event in react-multi-date-picker #300

Open hosseintaromi opened 1 week ago

hosseintaromi commented 1 week ago

The isDirty state in react-hook-form is not updating correctly when using react-multi-date-picker in conjunction with Controller from react-hook-form. Specifically, when the date value changes in the DatePicker, isDirty does not reflect this change, leading to incorrect form validation and submission behavior.