Browse Source

fix(mobile): click property title crashes

Tienson Qin 4 months ago
parent
commit
1c2648ee53

+ 2 - 1
src/main/frontend/components/db_based/page.cljs

@@ -21,5 +21,6 @@
                                       (property-config/property-dropdown page nil {:debug? (.-altKey e)}))
                                     {:content-props {:class "ls-property-dropdown as-root"}
                                      :align "start"
-                                     :as-dropdown? true}))}
+                                     :as-dropdown? true
+                                     :dropdown-menu? true}))}
      "Configure property")))

+ 3 - 1
src/main/frontend/components/page.cljs

@@ -393,7 +393,9 @@
                      (fn []
                        [:div.ls-property-dropdown
                         (property-config/property-dropdown page nil {})])
-                     {:align :center})
+                     {:align :center
+                      :as-dropdown? true
+                      :dropdown-menu? true})
                     (let [opts (cond-> {:block page :target (.-target e)}
                                  (ldb/class? page)
                                  (assoc :class-schema? true))]

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

@@ -288,6 +288,7 @@
                                                          (when-let [input (state/get-input)]
                                                            (.focus input)))}
                                      :align "start"
+                                     :dropdown-menu? true
                                      :as-dropdown? true})))}
 
    (:block/title property)))