mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 10:26:35 +00:00
fix: lost editor cursor when pressing Enter to undent
This commit is contained in:
@@ -173,7 +173,8 @@
|
||||
(defn- edit-block-aux
|
||||
[repo block content text-range {:keys [container-id]}]
|
||||
(when block
|
||||
(state/clear-edit!)
|
||||
(when (not= (:db/id block) (:db/id (state/get-edit-block)))
|
||||
(state/clear-edit!))
|
||||
(let [container-id (or container-id
|
||||
(state/get-current-editor-container-id)
|
||||
:unknown-container)]
|
||||
|
||||
Reference in New Issue
Block a user