reagent-project / reagent-forms

Bootstrap form components for Reagent
339 stars 78 forks source link

Support for :disabled on select-groups/lists #126

Closed smogg closed 6 years ago

smogg commented 6 years ago

Following up on #125 this PR adds support for :disabled on inner :*-select or :list fields.

I ended up using clojure.walk after all as this is the only way I can think of to traverse the unknown structures (we can't assume users won't add additional markup around inner buttons/divs/lis inside .button-group). I'm open to suggestions.

yogthos commented 6 years ago

Yeah I think that's a good general solution that doesn't make assumptions regarding the structure.

yogthos commented 6 years ago

just pushed out a new version to Clojars with the updates