Skip to content

onSelectSlot not returning doubleClick slotInfo objects #2565

Closed
MateoSebF/armario-react
#17
@joggjogg

Description

@joggjogg

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/react-big-calendar-doubleclick-bug-v4qp78?file=%2Fsrc%2FApp.tsx%3A8%2C1

Bug description

The onSelectSlot prop is no longer returning slotInfo objects caused by a double click.

Expected Behavior

When the selectable prop is true, and I double click on a slot in the calendar, I expect onSelectSlot to return a slotInfo object where slotInfo.action == 'doubleClick'

Actual Behavior

I double click on a slot in the calendar and recieve two slotInfo objects where slotInfo.action == 'click'

react-big-calendar version

1.11.3

React version

18.2.0

Platform/Target and Browser Versions

macOS Safari 17.4.1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions