tailwind-datepicker-react
tailwind-datepicker-react copied to clipboard
fix: max and min options, clone the date options to not cause issues of manipulating the wrong reference
We can't manipulate date references without clone it, otherwise it will change the original value:
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