File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
- import SortableTree from './react-sortable-tree' ;
1
+ import SortableTree , { SortableTreeWithoutDndContext } from './react-sortable-tree' ;
2
2
3
3
export * from './utils/default-handlers' ;
4
4
export * from './utils/tree-data-utils' ;
5
5
export default SortableTree ;
6
+
7
+ // Export the tree component without the react-dnd DragDropContext,
8
+ // for when component is used with other components using react-dnd.
9
+ // see: https://github.com/gaearon/react-dnd/issues/186
10
+ export { SortableTreeWithoutDndContext } ;
Original file line number Diff line number Diff line change @@ -545,4 +545,9 @@ ReactSortableTree.defaultProps = {
545
545
isVirtualized : true ,
546
546
} ;
547
547
548
+ // Export the tree component without the react-dnd DragDropContext,
549
+ // for when component is used with other components using react-dnd.
550
+ // see: https://github.com/gaearon/react-dnd/issues/186
551
+ export { ReactSortableTree as SortableTreeWithoutDndContext } ;
552
+
548
553
export default dndWrapRoot ( ReactSortableTree ) ;
You can’t perform that action at this time.
0 commit comments