Skip to content

Commit

Permalink
Reset current-block edit state after indent/outdent operation
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenniak authored and tiensonqin committed Jan 19, 2024
1 parent a6d13fb commit b6382d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/frontend/handler/editor.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b6382d5

Please sign in to comment.