don't enter editing state when click query table result on iOS

pull/6141/head
llcc 2022-07-20 22:54:02 +08:00 committed by Tienson Qin
parent af8c0ee148
commit 808215dda8
2 changed files with 4 additions and 2 deletions

View File

@ -1929,7 +1929,8 @@
(and (util/sup? target)
(dom/has-class? target "fn"))
(dom/has-class? target "image-resize")
(dom/closest target "a")))
(dom/closest target "a")
(dom/closest target ".query-table")))
(defn- block-content-on-mouse-down
[e block block-id _content edit-input-id]

View File

@ -112,7 +112,8 @@
desc?
result)]
[:div.overflow-x-auto {:on-mouse-down (fn [e] (.stopPropagation e))
:style {:width "100%"}}
:style {:width "100%"}
:class (when-not page? "query-table")}
[:table.table-auto
[:thead
[:tr.cursor