components icon indicating copy to clipboard operation
components copied to clipboard

MatSelect valueChange does not emit an event when value is changed programmatically

Open ECastermans opened this issue 6 years ago • 6 comments
trafficstars

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

ECastermans avatar Mar 29 '19 15:03 ECastermans

I have the same problem with Angular Material 9.1.1. Is there a workaround this?

vladnis avatar Sep 19 '20 19:09 vladnis

Same here with Angular Material 9.2.4. Any solutions?

g-contaldi avatar Dec 09 '20 18:12 g-contaldi

I just ran into this problem, too. I found that ngModelChange is fired on programmatic change, so I'm using that as a workaround.

chrislong avatar Jan 27 '21 16:01 chrislong

Same here 😟

Bernoulli-IT avatar Jul 13 '22 18:07 Bernoulli-IT

Still here in Angular 15...

alinmateut avatar Feb 06 '23 10:02 alinmateut

i also having this problem, my current workaround to detect the select value is change by using the optionSelectionChanges property

joeprabawa avatar Feb 01 '24 05:02 joeprabawa

Still a thing on Angular 17.0.4

DanielHabenicht avatar Apr 08 '24 19:04 DanielHabenicht