bug(mat-selection-list): Model change fired twice for the selection list with [multiple]="false" #22276
Labels
area: material/list
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
For the
mat-selection-list
with multiple selections disabled the model change event is fired twice.StackBlitz to reproduce:
Steps to reproduce:
onChange
is called twice.Essential part of code:
An example is showing binding via
[(ngModel)]
, but the same behavior is observed with reactive forms whenvalueChanges
are fired twice.Expected Behavior
Model change should be fired once similar as it works for lists with multiple selections allowed.
Actual Behavior
Model change is fired twice.
Environment
Edit: added essential part of code to the issue itself.
The text was updated successfully, but these errors were encountered: