Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
fix(dnd): dont use classname (jquense#2232)
Browse files Browse the repository at this point in the history
allow for className object usage
  • Loading branch information
dhruvgoel92 committed Jul 15, 2022
1 parent 55d9dc4 commit 2332f12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/addons/dragAndDrop/EventWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ class EventWrapper extends React.Component {
// hack: because of the way the anchors are arranged in the DOM, resize
// anchor events will bubble up to the move anchor listener. Don't start
// move operations when we're on a resize anchor.
const isResizeHandle = e.target.className.includes('rbc-addons-dnd-resize')
const isResizeHandle = e.target
.getAttribute('class')
?.includes('rbc-addons-dnd-resize')
if (!isResizeHandle)
this.context.draggable.onBeginAction(this.props.event, 'move')
}
Expand Down

0 comments on commit 2332f12

Please sign in to comment.