Skip to content

Commit

Permalink
fix: firefox event click bug (jquense#1262)
Browse files Browse the repository at this point in the history
I've faced the same problem as @Kerumen described in jquense#1173 as it was long time ago, I've decided to push pr with fix
  • Loading branch information
michalak111 authored and jquense committed Mar 21, 2019
1 parent 2c8c08d commit b526416
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 3 additions & 2 deletions src/EventCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ class EventCell extends React.Component {

return (
<EventWrapper {...this.props} type="date">
<button
<div
{...props}
tabIndex={0}
style={{ ...userProps.style, ...style }}
className={cn('rbc-event', className, userProps.className, {
'rbc-selected': selected,
Expand All @@ -64,7 +65,7 @@ class EventCell extends React.Component {
onDoubleClick={e => onDoubleClick && onDoubleClick(event, e)}
>
{typeof children === 'function' ? children(content) : content}
</button>
</div>
</EventWrapper>
)
}
Expand Down
6 changes: 0 additions & 6 deletions src/less/event.less
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
@import './variables.less';

.rbc-event {
border: none;
box-shadow: none;
margin: 0;
padding: @event-padding;
background-color: @event-bg;
border-radius: @event-border-radius;
color: @event-color;
cursor: pointer;
width: 100%;
text-align: left;

.rbc-slot-selecting & {
cursor: inherit;
pointer-events: none;
Expand Down

0 comments on commit b526416

Please sign in to comment.