Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in week view when I want to select a range of hours #2567

Closed
4 of 5 tasks
danielzeroconsulting opened this issue Apr 16, 2024 · 1 comment
Closed
4 of 5 tasks
Labels

Comments

@danielzeroconsulting
Copy link

danielzeroconsulting commented Apr 16, 2024

Check that this is really a bug

  • I confirm

Reproduction link

X

Bug description

When I am in the week view and I drag to select several hours, it automatically sets the start at 00:00, this error occurs with all days of the week except Sunday.

The code:

 <Calendar
    views={["day", "week", "month"]}
    selectable
    localizer={localizer}
    defaultDate={new Date()}
    defaultView={currentView as View}
    events={eventsData}
    onSelectEvent={handleEventClick}
    onSelectSlot={handleSelect}
    messages={translates}
    className="h-full"
    onView={(view) => setCurrentView(view as View)}
  />

Expected Behavior

recording.1.mp4

Actual Behavior

No response

react-big-calendar version

1.11.2

React version

18

Platform/Target and Browser Versions

Chrome

Validations

  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a react-big-calendar issue and not an implementation issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@danielzeroconsulting
Copy link
Author

I have updated the package to the latest version and it is working properly "react-big-calendar": "^1.11.6",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant