Просмотр исходного кода

fix(ui): Incorrect hierarchy affects the functionality of the button tag

charlie 10 месяцев назад
Родитель
Сommit
504cce5d5d

+ 4 - 0
src/main/frontend/components/property.css

@@ -188,6 +188,10 @@
     @apply flex items-center shrink;
   }
 
+  &[data-type] {
+    @apply flex items-center;
+  }
+
   &[data-type="datetime"] {
     @apply whitespace-nowrap;
   }

+ 8 - 6
src/main/frontend/components/property/value.cljs

@@ -1340,10 +1340,12 @@
                              value-cp)))]]
          (if show-tooltip?
            (shui/tooltip-provider
-            (shui/tooltip
-             {:delayDuration 1200}
-             (shui/tooltip-trigger
-              {:onFocusCapture #(util/stop-propagation %)} value-cp)
-             (shui/tooltip-content
-              (str "Change " (:block/title property)))))
+             (shui/tooltip
+               {:delayDuration 1200}
+               (shui/tooltip-trigger
+                 {:onFocusCapture #(util/stop-propagation %)
+                  :as-child true}
+                 value-cp)
+               (shui/tooltip-content
+                 (str "Change " (:block/title property)))))
            value-cp))))))