The week selection example no longer works. I'm trying to implement something similar with the ability to select multiple distinct week ranges, but there seems to be issues with the way max is working.
To reproduce
import { DayPicker } from "react-day-picker";
import "react-day-picker/style.css";
export default function App() {
return <DayPicker mode="range" max={1} />;
}
Actual Behavior
Having range mode and a max of 1 allows selecting a range of two days.
Expected Behavior
Having range mode and a max of 1 allows selecting one day.
Screenshots

The week selection example no longer works. I'm trying to implement something similar with the ability to select multiple distinct week ranges, but there seems to be issues with the way max is working.
To reproduce
Actual Behavior
Having range mode and a max of 1 allows selecting a range of two days.
Expected Behavior
Having range mode and a max of 1 allows selecting one day.
Screenshots