-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
onSelectSlot callback is called instead of onSelectEvent (sometimes) #614
Comments
Sorry folks I can't reproduce on the examples, perhaps it was inadvertently fixed recently |
@jquense it's not fixed I guess. I am facing the same issue!
Events in all day group seems to be working just fine. But the events underneath aren't working! The solution by SamHurne in #630 seemed to have fixed the issue previously. But we updated the package recently and that fix is not working either! |
|
I had this problem. Resolved it very simple: I gave the event class z-index:999 so when clicking an event it will catch the event and not the slot below. |
This issue is still happening for me. @noagani that fix did not work for me |
@noagani that was the first thing I tried. Did work for sometime. But recently, after upgrading to the latest version, the |
Also still happening for me. |
z-index is not working for me too. |
Sometimes, clicking on an event will execute the onSelectSlot callback (instead of onSelectEvent)
This is caused by the document.elementFromPoint (in isEvent function of Selection.js) which will return the span contained in the rbc-slot-selection div...
Removing the following code from DayColumn.js fixed that issue but I'm not sure 100% that it's the better way to do it. rbc-slot-selection does not seems to be used
&& _react2.default.createElement(
'div',
{ className: 'rbc-slot-selection', style: style },
_react2.default.createElement(
'span',
null,
_localizer2.default.format(selectDates, selectRangeFormat, culture)
)
)
The text was updated successfully, but these errors were encountered: