Skip to content

IgxRadio fires ngModelChange when same option is selected #9155

@wnvko

Description

@wnvko

Description

Having igxRadio bind with ngModel fires ngModelChange when clicking on same option several times without actual change in the model

  • igniteui-angular version: 11.1.1
  • browser: all

Steps to reproduce

  1. Start this Stackblitz.
  2. Click on first option to select it.
  3. Click again on first option.

Result

ngModelChange fires on each click even the model did not change.

Expected result

ngModelChange should fire only when model changes, e.g. when different option is selected.

Note

On same sample clicking on HTML radio type inputs does not fire ngModelChange when same option is selected which is expected behavior.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions