File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,16 @@ export function GridStackHandleReInitializer(
4444
4545 // https://github.com/gridstack/gridstack.js/blob/a917afcada4bd2892963678c8b1bde7630bb9528/src/gridstack.ts#L2402
4646 const g = gridStack as GridStack & {
47- _prepareDragDropByNode : ( node : GridStackNode ) => void ;
47+ _prepareDragDropByNode ? : ( node : GridStackNode ) => void ;
4848 } ;
49- g . _prepareDragDropByNode ( node ) ;
49+ if ( g . _prepareDragDropByNode ) {
50+ g . _prepareDragDropByNode ( node ) ;
51+ } else {
52+ // https://github.com/gridstack/gridstack.js/blob/90a014d5f396ac335962c4192d6aa434f04bf223/src/gridstack.ts#L2413
53+ if ( g . prepareDragDrop ) {
54+ g . prepareDragDrop ( element ) ;
55+ }
56+ }
5057 }
5158 }
5259 }
You can’t perform that action at this time.
0 commit comments