Sfoglia il codice sorgente

fix: disable annoying node preview when editing

Tienson Qin 4 mesi fa
parent
commit
f7fe814414
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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 (boolean? in-popup?)
        (if (and (not (:preview? config))
        (if (and (not (:preview? config))
                 (not in-popup?)
                 (not in-popup?)
-                (or (not manual?) open?))
+                (or (not manual?) open?)
+                (not (state/editing?)))
          (popup-preview-impl children
          (popup-preview-impl children
                              {:visible? visible? :set-visible! set-visible!
                              {:visible? visible? :set-visible! set-visible!
                               :*timer *timer :*timer1 *timer1
                               :*timer *timer :*timer1 *timer1