File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -173,11 +173,7 @@ export function useDraggable<T>(...args: any[]): UseDraggableReturn {
173173 insertNodeAt ( from , item , oldIndex ! )
174174 if ( isRef < any [ ] > ( list ) ) {
175175 const newList = [ ...unref ( list ) ]
176- list . value = moveArrayElement (
177- newList ,
178- oldIndex ! ,
179- newIndex !
180- )
176+ list . value = moveArrayElement ( newList , oldIndex ! , newIndex ! )
181177 return
182178 }
183179 moveArrayElement ( unref ( list ) , oldIndex ! , newIndex ! )
@@ -208,7 +204,7 @@ export function useDraggable<T>(...args: any[]): UseDraggableReturn {
208204 }
209205
210206 function mergeOptions ( ) {
211- // eslint-disable-next-line
207+ // eslint-disable-next-line
212208 const { immediate, clone, ...restOptions } = unref ( options ) ?? { }
213209 return mergeOptionsEvents (
214210 list === null ? { } : presetOptions ,
You can’t perform that action at this time.
0 commit comments