mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
fix: undo block deletion needs multiple steps (#8833)
fix: undo block deletion needs multiple steps --------- Co-authored-by: charlie <xyhp915@qq.com>
This commit is contained in:
@@ -1119,7 +1119,8 @@ Similar to re-frame subscriptions"
|
||||
(when container
|
||||
{:last-edit-block edit-block
|
||||
:container (gobj/get container "id")
|
||||
:pos (cursor/pos (gdom/getElement edit-input-id))})))
|
||||
:pos (or (cursor/pos (gdom/getElement edit-input-id))
|
||||
(count (:block/content edit-block)))})))
|
||||
|
||||
(defn clear-edit!
|
||||
[]
|
||||
|
||||
Reference in New Issue
Block a user