Przeglądaj źródła

fix: click input when creating a link will close the editor

Tienson Qin 4 lat temu
rodzic
commit
bf60e6b011
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/main/frontend/components/editor.cljs

+ 1 - 0
src/main/frontend/components/editor.cljs

@@ -286,6 +286,7 @@
                         (< delta-width (* max-width 0.5))))] ;; FIXME: for translateY layer
     [:div.absolute.rounded-md.shadow-lg.absolute-modal
      {:class (if x-overflow? "is-overflow-vw-x" "")
+      :on-mouse-down (fn [e] (.stopPropagation e))
       :style (merge
               {:top        (+ top offset-top)
                :max-height to-max-height