From 9ba335341e933e2e2943cdb0abea335328154755 Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Sun, 30 Sep 2018 23:08:22 +0200 Subject: [PATCH] add :hidden to widget spec --- src/formulare/core.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formulare/core.clj b/src/formulare/core.clj index 2a50f9a..087b60a 100644 --- a/src/formulare/core.clj +++ b/src/formulare/core.clj @@ -14,7 +14,7 @@ (spec/or :empty empty? :options (spec/coll-of (spec/tuple string? string?)))) (spec/def ::widget - #(in? [:input :select :checkbox :textarea :mselect] %)) + #{:input :select :checkbox :textarea :mselect :hidden}) (spec/def ::from-req (spec/and fn? #(= 1 (->> % meta :arglists (map count) first)))) (spec/def ::to-form ::from-req)