This commit is contained in:
bom 2023-10-27 14:53:29 +02:00
parent 52d5263b86
commit abfe467382

View file

@ -58,7 +58,7 @@
spec js-object? spec js-object?
& {:keys [deserializer optional] & {:keys [deserializer optional]
:or {deserializer identity optional false}} dom-function-parameter] :or {deserializer identity optional false}} dom-function-parameter]
(let [content (get-deserialized-content name :optional optional :deserializer deserializer)] (let [content (get-content-from-element name :optional optional :deserializer deserializer)]
(if (or (and optional (st/blank? content)) (if (or (and optional (st/blank? content))
(s/valid? spec content)) (s/valid? spec content))
(set-validation-result! name "") (set-validation-result! name "")