components
components copied to clipboard
MatSelect valueChange does not emit an event when value is changed programmatically
What is the expected behavior?
MatSelect.valueChange should fire when MatSelect.value is set from code
What is the current behavior?
MatSelect.valueChange is not fired when MatSelect.value is set from code. MatSelect.valueChange is fired when the user selects a value.
What are the steps to reproduce?
https://stackblitz.com/edit/angular-fnxm1r?file=app%2Fselect-overview-example.ts
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular Material 7.3.6
I have the same problem with Angular Material 9.1.1. Is there a workaround this?
Same here with Angular Material 9.2.4. Any solutions?
I just ran into this problem, too. I found that ngModelChange is fired on programmatic change, so I'm using that as a workaround.
Same here 😟
Still here in Angular 15...
i also having this problem, my current workaround to detect the select value is change by using the optionSelectionChanges property
Still a thing on Angular 17.0.4