faulknercs / Knockstrap

Knockout bindings to twitter bootstrap 3
faulknercs.github.io/Knockstrap/
MIT License
142 stars 37 forks source link

Can't select a radio button with a numeric value of 0 #67

Closed DaveSweeton closed 3 years ago

DaveSweeton commented 4 years ago

I have radio buttons bound to an observable value that holds numbers. I can't correctly bind radiobuttons to a value of zero.

I noticed this code that might be the cause (since 0 is falsey):

var value = ko.unwrap(valueAccessor()) || '',

faulknercs commented 3 years ago

Thanks for the report! Fixed.