When I first load data and click on an event I occasionally get eventData with a value of false. When I click it a second time it has the correct data.
I'm sure it's not an issue with events, as they all render on the calendar correctly, and target.props.eventData looks correct (and I'm using that as a workaround for now). Any idea what could be causing this?
<EventCalendar
month={currentTime.month()}
year={currentTime.year()}
events={events}
onEventClick={(target, eventData) => {
console.log(eventData); // => false
console.log(target.props.eventData); // => the actual data
}}
onDayClick={this.handleDayClick}
onEventMouseOver={this.handleEventMouseOver}
onEventMouseOut={this.handleEventMouseOut} />
When I first load data and click on an event I occasionally get
eventData
with a value offalse
. When I click it a second time it has the correct data.I'm sure it's not an issue with
events
, as they all render on the calendar correctly, andtarget.props.eventData
looks correct (and I'm using that as a workaround for now). Any idea what could be causing this?