From c97a2b094c4e4a6a5922d648b21864751229b4b2 Mon Sep 17 00:00:00 2001 From: Alex Sarmanov Date: Wed, 8 Feb 2017 19:23:15 +0300 Subject: [PATCH] select_option_disabled --- src/reforms/core.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/reforms/core.cljs b/src/reforms/core.cljs index f409c33..f6eae55 100644 --- a/src/reforms/core.cljs +++ b/src/reforms/core.cljs @@ -397,7 +397,9 @@ :id dom-id})] (apply impl/input* :select input-attrs label cursor korks opts (map #(vector :option {:value (str (first %)) - :key (gen-key (first %))} (second %)) options)))) + :key (gen-key (first %)) + :disabled (nth % 2 false)} (second %)) options)))) + (defn datetime "Datetime input. See http://getbootstrap.com/css/#inputs