NG-ZORRO / ng-zorro-antd

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

The start date of the ng-range-picker component in the browser IE11 will be overwritten by the end date #6599

Open wenyaodong777 opened 3 years ago

wenyaodong777 commented 3 years ago

Reproduction link

https://angular-azk8pk.stackblitz.io/

Steps to reproduce

Open stackblitz demo with IE11.

What is expected?

The start date and end date are displayed normally

What is actually happening?

The start date overwritten by the end date

Environment Info
ng-zorro-antd 11.4.0
Browser IE11
hairgc commented 3 years ago

the same problem

wenqi73 commented 3 years ago

@wenyaodong777 Could you help to see if it works normally in https://preview-6604-ng-zorro-antd.surge.sh/ ?

wenyaodong777 commented 3 years ago

@wenyaodong777 Could you help to see if it works normally in https://preview-6604-ng-zorro-antd.surge.sh/ ?

Have the same problem(https://stackblitz.com/edit/angular-azk8pk?file=src/app/app.component.ts)

wenyaodong777 commented 3 years ago

@wenqi73 I found that the reason is that ngModelChange is triggered,when the end date triggered ngModelChange, this.datePickerService.activeInput is left, The start date overwritten by the end date

wenqi73 commented 3 years ago

@wenyaodong777 Could you provide a GIF about this?

wenyaodong777 commented 3 years ago

@wenqi73 https://user-images.githubusercontent.com/35827098/114810283-5805ae80-9dde-11eb-99e3-6c2d346fe213.mp4