diff --git a/frontend/src/app/main/ui/ds/controls/numeric_input.cljs b/frontend/src/app/main/ui/ds/controls/numeric_input.cljs index b32eea6790..38a55ef1da 100644 --- a/frontend/src/app/main/ui/ds/controls/numeric_input.cljs +++ b/frontend/src/app/main/ui/ds/controls/numeric_input.cljs @@ -149,14 +149,14 @@ (def ^:private schema:icon [:and :string [:fn #(contains? icon-list %)]]) -;; TODO: Review schema props (def ^:private schema:numeric-input [:map [:id {:optional true} :string] [:class {:optional true} :string] - ;; [:value {:optional true} [:maybe [:or - ;; :int - ;; :string]]] + [:value {:optional true} [:maybe [:or + :int + :string + [:= :multiple]]]] [:default {:optional true} [:maybe :string]] [:placeholder {:optional true} :string] [:icon {:optional true} [:maybe schema:icon]] @@ -301,7 +301,6 @@ (when (fn? on-change) (on-change parsed)) - ;; Comprar si es valor es necesario, sino borrar (mf/set-ref-val! raw-value* (fmt/format-number parsed)) (update-input (fmt/format-number parsed))) diff --git a/frontend/src/app/main/ui/ds/controls/shared/token_option.cljs b/frontend/src/app/main/ui/ds/controls/shared/token_option.cljs index 2760eeadf6..f60e5350ae 100644 --- a/frontend/src/app/main/ui/ds/controls/shared/token_option.cljs +++ b/frontend/src/app/main/ui/ds/controls/shared/token_option.cljs @@ -18,11 +18,10 @@ [:map [:id {:optiona true} :string] [:ref some?] - [:resolved {:optional true} [:or :number :string]] + [:resolved {:optional true} [:or :int :string]] [:name {:optional true} :string] [:on-click {:optional true} fn?] [:selected {:optional true} :boolean] - [:focused {:optional true} :boolean] [:focused {:optional true} :boolean]]) (mf/defc token-option*