NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.86k stars 3.92k forks source link

Timepicker ngModelChange didn't trigger the event. #4943

Closed a2928897 closed 4 years ago

a2928897 commented 4 years ago

Reproduction link

https://ng-zorro-antd-start-n8xput.stackblitz.io 抱歉我好像不知道如何安装beta版在stackblitz中

Steps to reproduce

I use official example about timepicker ngmodel binding,there is a ngModelChange effect, But when I change the time, console will not show, nothing will be trigger. I think the ngmodel didn't binding to the value.

我用官方的范例关于timepicker 的ngmodel绑定,带有ngModelChange的效果, 但当我调整时间,console却没有任何信息,事件没有被触发。 我觉得ngmodel没有把值正确绑定。

What is expected?

If I change the value, the event need to be trigger. 如果我调整了时间,事件应该正确被触发。

What is actually happening?

调整时间后,事件没有被触法。

Environment Info
ng-zorro-antd 9.0.0-beta.3
Browser chrome 80.0.3987.149

我目前使用的package: "dependencies": { "@angular/animations": "~9.0.5", "@angular/cdk": "~9.1.1", "@angular/common": "~9.0.5", "@angular/compiler": "~9.0.5", "@angular/core": "~9.0.5", "@angular/flex-layout": "^9.0.0-beta.29", "@angular/forms": "^9.0.5", "@angular/material": "^9.1.1", "@angular/platform-browser": "~9.0.5", "@angular/platform-browser-dynamic": "~9.0.5", "@angular/router": "~9.0.5", "@ngx-formly/core": "^5.5.13", "@ngx-formly/material": "^5.5.13", "@ngx-translate/core": "^12.1.2", "@ngx-translate/http-loader": "^4.0.0", "bootstrap": "^4.3.1", "echarts": "^4.5.0", "ng-zorro-antd": "^9.0.0-beta.3", "ng2-dragula": "^2.1.1", "ngx-echarts": "^4.2.2", "rxjs": "~6.5.3", "tslib": "^1.10.0", "zone.js": "~0.10.2", "zrender": "^4.3.0" },

a2928897 commented 4 years ago

The same issue I had tried in version 8.x is work fine. 这个范例我在ng-zorro的8.x版测试过,是正常的。