Open 007GitHu opened 4 years ago
[Https://stackblitz.com/edit/angular-zjuj98-udhwaz?file=src/app/app.component.ts](https://stackblitz.com/edit/angular-zjuj98-udhwaz?file=src/ app / app.component.ts)
1, click the date components, the operation panel popping box, click on a blank area, the closing operation panel, this time will trigger ngModelChange, but does not change the value of the input box
When the date selection box has a default value, change the value of the input box, only to trigger ngModelChange
When the date selection box has a default value, the value of the input box has not changed, but the operator panel to expand or collapse triggered ngModelChange
Environment | Info |
---|---|
Ng-zorro-antd | 9.3.0 |
Browser |
Reproduction link
https://stackblitz.com/edit/angular-zjuj98-udhwaz?file=src/app/app.component.ts
Steps to reproduce
1、点击日期组件,弹框操作面板后,直接点击空白区域,关闭操作面板,此时会触发ngModelChange,而输入框中的值并未改变
What is expected?
日期选择框有默认值时,输入框的值改变,才触发ngModelChange
What is actually happening?
日期选择框有默认值时,输入框的值未发生改变,只是操作面板展开或收起就会触发ngModelChange