Skip to content

Commit

Permalink
fix(ux): clear highlighted text when selecting blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Jun 21, 2022
1 parent 1d4e78a commit 9837036
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/frontend/components/block.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1928,7 +1928,10 @@
(when-not (target-forbidden-edit? target)
(cond
(and shift? (state/get-selection-start-block-or-first))
(editor-handler/highlight-selection-area! block-id)
(do
(util/stop e)
(util/clear-selection!)
(editor-handler/highlight-selection-area! block-id))

shift?
(util/clear-selection!)
Expand Down

0 comments on commit 9837036

Please sign in to comment.