diff --git a/project.clj b/project.clj index c211ca53..83c0d7ce 100644 --- a/project.clj +++ b/project.clj @@ -32,7 +32,7 @@ ;; --------------------------------------------------------------------------------------- -(defproject re-com "0.5.0" +(defproject re-com "0.5.1" :description "Reusable UI components for Reagent" :url "https://github.com/Day8/re-com.git" :license {:name "MIT"} diff --git a/src/re_com/tabs.cljs b/src/re_com/tabs.cljs index 1a9cf6b3..55df4716 100644 --- a/src/re_com/tabs.cljs +++ b/src/re_com/tabs.cljs @@ -25,7 +25,7 @@ {:pre [(validate-args-macro tabs-args-desc args "tabs")]} (let [current (deref-or-value model) tabs (deref-or-value tabs) - _ (assert (not-empty (filter #(= current (:id %)) tabs)) "model not found in tabs vector")] + _ (assert (not-empty (filter #(= current (id-fn %)) tabs)) "model not found in tabs vector")] [:ul {:class "rc-tabs nav nav-tabs noselect" :style (flex-child-style "none")} @@ -50,7 +50,7 @@ [& {:keys [model tabs on-change id-fn label-fn vertical?]}] (let [current (deref-or-value model) tabs (deref-or-value tabs) - _ (assert (not-empty (filter #(= current (:id %)) tabs)) "model not found in tabs vector")] + _ (assert (not-empty (filter #(= current (id-fn %)) tabs)) "model not found in tabs vector")] [:div {:class (str "rc-tabs noselect btn-group" (if vertical? "-vertical")) :style (flex-child-style "none")}