mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 10:26:35 +00:00
fix: wrong pos when pressing Backspace
Editor's state including last pos and cursor range need to be cleared when callling block-handler/edit-block!
This commit is contained in:
@@ -193,6 +193,7 @@
|
||||
(when-not config/publishing?
|
||||
(p/do!
|
||||
(state/pub-event! [:editor/save-code-editor])
|
||||
(state/clear-edit! {:clear-editing-block? false})
|
||||
(when-let [block-id (:block/uuid block)]
|
||||
(let [repo (state/get-current-repo)
|
||||
db-graph? (config/db-based-graph? repo)
|
||||
|
||||
Reference in New Issue
Block a user