I'm using a template binding to render a set of radio buttons. There is also a css binding on the element.
When a radio button is clicked, the viewmodel & view are are updated, but the checked state of the radio button is lost. Is there a work around for this?
<div data-bind="with: point">
<div data-bind="template: { name: 'template1', data: $data }, css: { 'has-warning': hasAlarm }"></div>
</div>
<script type="text/template" id="template1">
<!-- ko foreach: choices -->
<label>
<input type="radio" data-bind="checked: $parent.value, value: $data" name="test" />
<span data-bind="text: $data"></span>
</label><br/>
<!-- /ko -->
<span data-bind="visible: hasAlarm">Abnormal!</span>
</script>