[英](change) event does not work on select and input elements but does on checkbox Angular 6, Material 6
After updating my 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 fine on a checkbox element. 将我的项目从Material v5.2.4更新到v6.0.0并将Angular v5.1.2更新到v6.0.0之后,
(change)
事件在select和input type="text"
元素上不起作用,而在复选框上却可以正常使用元件。
Note: changing the event from (change)
to (ngModelChange)
is working perfectly fine for all the above specified elements. 注意:对于上述所有指定元素,将事件从
(change)
为(ngModelChange)
完全正常。 Also, the (change)
event was working just fine before the upgrade on all of them. 同样,
(change)
事件在全部升级之前运行良好。
StackBlitz to reproduce the issue => HERE 重现问题的StackBlitz => HERE
ng -v command result: ng -v命令结果:
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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.