formly-js / angular-formly

JavaScript powered forms for AngularJS
http://docs.angular-formly.com
MIT License
2.22k stars 405 forks source link

Radio buttons with boolean values are not loaded on update #720

Closed CodeLiftSleep closed 7 years ago

CodeLiftSleep commented 7 years ago

Having an issue where formly radio buttons that contain boolean values are not being updated properly when values are being loaded from a DB. Works fine with string values, but nothing shows up for boolean values even though the model is being updated properly and holds the data. So for instance radio buttons containing string values are being set to their proper values when the form loads. Radio buttons containing boolean values are not.

CodeLiftSleep commented 7 years ago

In case this happens to anyone else---the solution was to change value to ng-value in the template