Bladeren bron

fix(ux): clear highlighted text when selecting blocks

Tienson Qin 3 jaren geleden
bovenliggende
commit
983703688b
1 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. 4 1
      src/main/frontend/components/block.cljs

+ 4 - 1
src/main/frontend/components/block.cljs

@@ -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!)