@@ -63,7 +63,7 @@ Instead, mount it with "Sortable.mount(new MultiDrag())"
63
63
64
64
Please read the updated README.md at https://github.com/SortableJS/react-sortablejs.
65
65
` ) ;
66
- }
66
+ }
67
67
68
68
componentDidMount ( ) {
69
69
if ( this . ref . current === null ) return ;
@@ -249,9 +249,9 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
249
249
switch ( mode ) {
250
250
case "normal" :
251
251
const item = {
252
- element : evt . item ,
252
+ element : evt . item ,
253
253
newIndex : evt . newIndex ! ,
254
- oldIndex : evt . oldIndex ! ,
254
+ oldIndex : evt . oldIndex ! ,
255
255
parentElement : evt . from
256
256
} ;
257
257
custom = [ item ] ;
@@ -264,8 +264,8 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
264
264
...parentElement
265
265
} ;
266
266
const swap : Input = {
267
- element : evt . swapItem ! ,
268
- oldIndex : evt . newIndex ! ,
267
+ element : evt . swapItem ! ,
268
+ oldIndex : evt . newIndex ! ,
269
269
newIndex : evt . oldIndex ! ,
270
270
...parentElement
271
271
} ;
@@ -280,7 +280,7 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
280
280
} ) ) ;
281
281
break ;
282
282
}
283
- const { list, setList } = this . props ;
283
+ const { list, setList } = this . props ;
284
284
const customs = createNormalized ( custom , list ) ;
285
285
handleDOMChanges ( customs ) ;
286
286
const newList = handleStateChanges ( customs , list ) ;
@@ -303,7 +303,7 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
303
303
newList [ evt . oldIndex ! ] . chosen = true ;
304
304
setList ( newList , this . sortable , store ) ;
305
305
}
306
-
306
+
307
307
onUnchoose ( evt : SortableEvent ) {
308
308
const { list, setList } = this . props ;
309
309
const newList = [ ...list ] ;
@@ -332,7 +332,7 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
332
332
}
333
333
}
334
334
335
- // everything below this point can be removes
335
+ // everything below this point can be removes
336
336
// once @types has been merged. PR submited
337
337
interface MultiIndices {
338
338
multiDragElement : HTMLElement ;
0 commit comments