Skip to content

Commit a766036

Browse files
committed
fix multiple image selection error
1 parent 4781e4b commit a766036

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/renderer/attribute/impl/href.cljs

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
(defmethod hierarchy/form-element [:default :href]
2323
[_ k v {:keys [disabled]}]
2424
(let [state-default? (= @(rf/subscribe [::tool.s/state]) :idle)
25-
data-url? (str/starts-with? v "data:")]
25+
data-url? (and v (str/starts-with? v "data:"))]
2626
[:div.flex.gap-px.w-full
2727
[v/form-input k (if data-url? "data-url" v)
28-
{:disabled (or disabled
28+
{:placeholder (when-not v "multiple")
29+
:disabled (or disabled
2930
data-url?
3031
(not v)
3132
(not state-default?))}]

0 commit comments

Comments
 (0)