You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@kml-rohillaa this doesn't appear to be a bug to me. My understanding is that minand max properties are agnostic to the specific day and simply constrain the time slots in the Day and Week views to fall within the [min, max] range. In your example, the issue arises because the max value (9am) is earlier than the min (8am) value, which leads to the error.
However, I believe this could make for a valuable feature request. It would be useful to introduce an additional mechanism—such as enabled/disabled time windows—to allow for the behavior you're looking.
I would be happy to work on a PR to implement this feature if the maintainers of the repository confirm that it is needed.
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/react-big-calendar-example-forked-w33qw4?file=%2Fsrc%2FApp.js%3A21%2C11
Bug description
I want to render a calendar from 9am current day to 8am next in the week view. All the other functionalities should be same.
Expected Behavior
Actual Behavior
RangeError
Invalid array length
react-big-calendar version
1.0.0
React version
18.2.0
Platform/Target and Browser Versions
All browsers
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: