Explorar o código

Fix cell drop order

Steven Silvester %!s(int64=8) %!d(string=hai) anos
pai
achega
d1cce554ff
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/notebook/widget.ts

+ 2 - 2
src/notebook/widget.ts

@@ -1262,10 +1262,10 @@ class Notebook extends StaticNotebook {
         value = factory.createRawCell({ cell });
         break;
       }
-      model.cells.insert(index, value);
+      model.cells.insert(index++, value);
     });
     // Activate the last cell.
-    this.activeCellIndex = index + values.length - 1;
+    this.activeCellIndex = index - 1;
   }
 
   /**