* fix: some unique "key" prop issues
@@ -198,7 +198,7 @@
(when @*resizing-image? (util/stop e)))}
(and (:width metadata) (not (util/mobile?)))
(assoc :style {:width (:width metadata)}))
- [:div.asset-container
+ [:div.asset-container {:key "resize-asset-container"}
[:img.rounded-sm.shadow-xl.relative
(merge
{:loading "lazy"
@@ -385,7 +385,8 @@
(notification/show! (str "The page \"" value "\" doesn't exist yet. Please create that page first, and then try again.") :warning))))
(defn journal-row [t enable-journals?]
- [(toggle "enable_journals"
+ [:span
+ (toggle "enable_journals"
(t :settings-page/enable-journals)
enable-journals?
(fn []
@@ -137,7 +137,7 @@
(when icon icon)
[:div {:style {:margin-right "8px"}} title]])]
(if hr
- [:hr.my-1]
+ [:hr.my-1 {:key "dropdown-hr"}]
(rum/with-key
(menu-link new-options child)
title))))
@@ -834,7 +834,7 @@
(log/error :exception e)
[:div]))
[:div {:key "tippy"} ""])))
- child)))
+ (rum/fragment {:key "tippy-children"} child))))
(defn slider
[default-value {:keys [min max on-change]}]