Skip to content

Commit

Permalink
feat: allow using custom event wrapper component while dragging (jque…
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Levchuk committed Jul 12, 2022
1 parent d2c37f5 commit afa8824
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/addons/dragAndDrop/EventContainerWrapper.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import PropTypes from 'prop-types'
import React from 'react'
import { DnDContext } from './DnDContext'
import NoopWrapper from '../../NoopWrapper'

import Selection, {
getBoundsForNode,
Expand Down Expand Up @@ -254,7 +253,7 @@ class EventContainerWrapper extends React.Component {
className="rbc-addons-dnd-drag-preview"
style={{ top, height, width: 100 }}
getters={getters}
components={{ ...components, eventWrapper: NoopWrapper }}
components={components}
accessors={{ ...accessors, ...dragAccessors }}
continuesPrior={startsBeforeDay}
continuesAfter={startsAfterDay}
Expand Down

0 comments on commit afa8824

Please sign in to comment.