Skip to content

Commit d770cf6

Browse files
arohrsimonihmig
authored andcommitted
fix(ButtonGroup): allow value 0 (Number) as valid value for a bs-button (emberjs-addons#105).
Thanks to @arohr
1 parent bc6cf2f commit d770cf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/components/bs-button-group.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export default Ember.Component.extend(ComponentParent, SizeClass, {
210210
value = this.get('activeChildren').mapBy('value');
211211
break;
212212
}
213-
if (value) {
213+
if (typeof value !== 'undefined') {
214214
this.set('value', value);
215215
}
216216
// remember activeChildren, used as a replacement for a before observer as they will be deprecated in the future...

0 commit comments

Comments
 (0)