React-big-calendar: On Click for day (including for mobile)

Created on 4 Mar 2019  路  4Comments  路  Source: jquense/react-big-calendar

Hello,

I think react-big-calendar is missing an event for clicking (mouse click or touchscreen click) or double clicking on day background, usable for mobile. So a click on: rbc-day-bg.

selectable={true}
onSelectSlot={this.onSlotSelect}
onDrillDown={this.onDrillDownClick}
`
Currently onSelectSlot work at click just for desktop use, not for mobile. For mobile to work you need to actually do a selection.

onDrillDown is useful because does this on mobile, but just for the area of day number... We need something for all the day box...

This is similar with https://github.com/intljusticemission/react-big-calendar/issues/1222

wontfix

Most helpful comment

@ParthPatel-DA happen also for me..
any suggestions?

All 4 comments

It seems this line is preventing the click from working on mobile:

https://github.com/intljusticemission/react-big-calendar/blob/473d886f34e561f25bec516360a373af39840150/src/Selection.js#L175

I commented it out and now both click and select actions trigger for onSelectSlot (in week mode).
Not sure what side effects it causes though.

It seems this line is preventing the click from working on mobile:

react-big-calendar/src/Selection.js
Line 175 in 473d886
this._onInitialEventListener.remove()
I commented it out and now both click and select actions trigger for onSelectSlot (in week mode).
Not sure what side effects it causes though.

@ktmn I have already commented this line. It's works fine in Android devices, but it's not worked in IOS devices. Please give suggestion, if any.

@ParthPatel-DA happen also for me..
any suggestions?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dogC76 picture dogC76  路  4Comments

KatiaPosPago picture KatiaPosPago  路  3Comments

connercms picture connercms  路  3Comments

Hector26 picture Hector26  路  3Comments

npalansky picture npalansky  路  3Comments