Преглед изворни кода

fix: disable annoying node preview when editing

Tienson Qin пре 4 месеци
родитељ
комит
f7fe814414
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/main/frontend/components/block.cljs

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

@@ -896,7 +896,8 @@
      (if (boolean? in-popup?)
        (if (and (not (:preview? config))
                 (not in-popup?)
-                (or (not manual?) open?))
+                (or (not manual?) open?)
+                (not (state/editing?)))
          (popup-preview-impl children
                              {:visible? visible? :set-visible! set-visible!
                               :*timer *timer :*timer1 *timer1