From 6c2f9b7bd3c6d76d1720765b8377143d76705ccf Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 11 Jan 2024 15:22:42 +0100 Subject: [PATCH] :bug: Do not forward invalid prop to dom node on form input component --- frontend/src/app/main/ui/components/forms.cljs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/src/app/main/ui/components/forms.cljs b/frontend/src/app/main/ui/components/forms.cljs index 9ce9ae13d3..2056369504 100644 --- a/frontend/src/app/main/ui/components/forms.cljs +++ b/frontend/src/app/main/ui/components/forms.cljs @@ -86,10 +86,8 @@ (when-not (get-in @form [:touched input-name]) (swap! form assoc-in [:touched input-name] true))) - - props (-> props - (dissoc :help-icon :form :trim :children) + (dissoc :help-icon :form :trim :children :show-success?) (assoc :id (name input-name) :value value :auto-focus auto-focus? @@ -152,8 +150,6 @@ [:> :input props] children]) - - (cond (and touched? (:message error)) [:div {:id (dm/str "error-" input-name)