Skip to content

Commit bea2b11

Browse files
committed
Exclude dragDropManager.
1 parent 7275d4a commit bea2b11

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/react-sortable-tree.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ class ReactSortableTree extends Component {
9191

9292
// Prepare scroll-on-drag options for this list
9393
this.scrollZoneVirtualList = (createScrollingComponent || withScrolling)(
94-
React.forwardRef((props, ref) => (
95-
<Virtuoso ref={this.listRef} {...props} />
96-
))
94+
React.forwardRef((props) => {
95+
const { dragDropManager, ...otherProps } = props
96+
return <Virtuoso ref={this.listRef} {...otherProps} />
97+
})
9798
)
9899
this.vStrength = createVerticalStrength(slideRegionSize)
99100
this.hStrength = createHorizontalStrength(slideRegionSize)

0 commit comments

Comments
 (0)