components icon indicating copy to clipboard operation
components copied to clipboard

(change) event does not work on select and input elements but does on checkbox

Open rgantla opened this issue 8 years ago • 2 comments

Bug, feature request, or proposal:

Bug

What is the expected behavior?

(change) event should work on the select and input type="text" elements.

What is the current behavior?

**After updating the project from Material v5.2.4 to v6.0.0 and Angular v5.1.2 to v6.0.0, the (change) event doesn't work on select and input type="text" elements while it does work alright on checkbox element.

changing the event from (change) to (ngModelChange) is working perfectly fine for any of the above specified elements.**

What are the steps to reproduce?

StackBlitz HERE

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

 _                      _                 ____ _     ___
/ \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|

/ △ \ | '_ \ / | | | | |/ _ | '__| | | | | | | / ___ | | | | (| | || | | (| | | | || | | | // __| ||_, |_,||_,|| _||| |___/

Angular CLI: 6.0.0 Node: 8.11.1 OS: win32 x64 Angular: 6.0.0 ... animations, cdk, cli, common, compiler, compiler-cli, core ... forms, http, language-service, material, platform-browser ... platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.6.0 @angular-devkit/build-angular 0.6.0 @angular-devkit/build-optimizer 0.6.0 @angular-devkit/core 0.6.0 @angular-devkit/schematics 0.6.0 @ngtools/webpack 6.0.0 @schematics/angular 0.6.0 @schematics/update 0.6.0 rxjs 6.1.0 typescript 2.7.2 webpack 4.6.0

Is there anything else we should know?

rgantla avatar May 05 '18 01:05 rgantla

MatSelect's @Output() change was deprecated in 5.2.4. Now you have

@Output()
selectionChange: EventEmitter<MatSelectChange>

Input's @Output() change is working normaly in here: https://stackblitz.com/edit/angular-xpnsrr

julianobrasil avatar May 06 '18 03:05 julianobrasil

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.