fix: selection

pull/3947/head
Tienson Qin 2022-01-19 13:00:51 +08:00
parent e9ebf54ecb
commit c120dd4d3b
1 changed files with 1 additions and 2 deletions

View File

@ -112,7 +112,6 @@
:editor/last-saved-cursor nil
:editor/editing? nil
:editor/last-edit-block-input-id nil
:editor/last-edit-block-id nil
:editor/in-composition? false
:editor/content {}
:editor/block nil
@ -737,7 +736,7 @@
(let [last-block (peek (vec (:selection/blocks @state)))]
(swap! state assoc
:selection/mode true
:selection/blocks (vec (pop (:selection/blocks @state))))
:selection/blocks (pop (vec (:selection/blocks @state))))
last-block))
(defn get-selection-direction