OnSelectSlot doesn't work in Mobile browsers. In Android devices, I debugged it with chrome browser but it did not work. In IOS devices I debugged with Safari browser that also did not work. In computer browsers it works smoothly when clicking on it but on mobile phones, it's not. Does anyone know a way to fix this?
Below is the code-------------------
<BigCalendar
selectable
events={[
{
id: 0,
title: <div>{this.state.morningShiftAppointments + this.state.eveningShiftAppointments}<br/>
<div>{this.state.morningShiftAppointments}/{this.state.eveningShiftAppointments}</div>
</div>,
allDay: true,
start: new Date(this.state.year, this.state.month, this.state.date),
end: new Date(this.state.year, this.state.month, this.state.date),
}
]}
views={['month']}
onSelectSlot={this.onSelectSlot.bind(this)}
dayPropGetter={customDayPropGetter}
longPressThreshold={1}
defaultDate={new Date()}
eventPropGetter={
(event, start, end, isSelected) => {
let newStyle = {
backgroundColor: "lightgrey",
color: 'black',
borderRadius: "0px",
border: "none",
minWidth: "100%"
};
return {
className: "",
style: newStyle
};
}
}
/>