Skip to content
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
@Narretz

Description

@Narretz

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);
});

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions