Browse Source

Reset current-block edit state after indent/outdent operation

Mathieu Fenniak 1 year ago
parent
commit
b6382d5c5c
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/main/frontend/handler/editor.cljs

+ 6 - 1
src/main/frontend/handler/editor.cljs

@@ -2824,7 +2824,12 @@
       (outliner-tx/transact!
        {:outliner-op :move-blocks
         :real-outliner-op :indent-outdent}
-       (outliner-core/indent-outdent-blocks! [block] indent?)))
+       (outliner-core/indent-outdent-blocks! [block] indent?))
+      (edit-block!
+        (db/pull (:db/id block))
+        (cursor/pos (state/get-input))
+        (:block/uuid block))
+    )
     (state/set-editor-op! :nil)))
 
 (defn keydown-tab-handler