Explorar o código

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

Tienson Qin %!s(int64=4) %!d(string=hai) anos
pai
achega
bf60e6b011
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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