Skip to content

Commit 2332f12

Browse files
authored
fix(dnd): dont use classname (jquense#2232)
allow for className object usage
1 parent 55d9dc4 commit 2332f12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/addons/dragAndDrop/EventWrapper.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ class EventWrapper extends React.Component {
4242
// hack: because of the way the anchors are arranged in the DOM, resize
4343
// anchor events will bubble up to the move anchor listener. Don't start
4444
// move operations when we're on a resize anchor.
45-
const isResizeHandle = e.target.className.includes('rbc-addons-dnd-resize')
45+
const isResizeHandle = e.target
46+
.getAttribute('class')
47+
?.includes('rbc-addons-dnd-resize')
4648
if (!isResizeHandle)
4749
this.context.draggable.onBeginAction(this.props.event, 'move')
4850
}

0 commit comments

Comments
 (0)