tailwind-datepicker-react icon indicating copy to clipboard operation
tailwind-datepicker-react copied to clipboard

fix: max and min options, clone the date options to not cause issues of manipulating the wrong reference

Open kibolho opened this issue 7 months ago • 0 comments

We can't manipulate date references without clone it, otherwise it will change the original value: image So this was causing some issues with the max and min limits in the goToPrevNext function. So this PR fix this issue by cloning the date object: const newDate = new Date(date.getTime()); And also fixing some layout issues to represent the disabled date values

kibolho avatar Jul 11 '24 00:07 kibolho