This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
radio Input does not set checked if model is boolean and value is used #7971
Closed
Description
See this test:
it('should set the view if model is boolean', function() {
compileInput(
'<input type="radio" ng-model="value" value="true" />' +
'<input type="radio" ng-model="value" value="false" />');
scope.$apply(function() {
scope.value = true;
});
expect(inputElm[0].checked).toBe(true);
expect(inputElm[1].checked).toBe(false);
});