Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nzDatePicker: Second datepicker do not openafter selection if nzOpenChange #3506

Closed
chenxiangjun2010 opened this issue May 28, 2019 · 3 comments
Assignees

Comments

@chenxiangjun2010
Copy link

chenxiangjun2010 commented May 28, 2019

Reproduction link

https://ng-zorro-antd-start.stackblitz.io/
https://stackblitz.com/edit/ng-zorro-antd-start-s12lcp

Steps to reproduce

点击开始时间选择器,选择时间后,结束时间选择器弹起,直接点ok按钮,弹窗关闭,在点击结束选择器,打不开选择弹窗,同理清除结束时间,也是打不开时间选择器的

What is expected?

结束时间选择器,不管有没有值,都可以被打开

What is actually happening?

结束时间选择器,没值,不可以被打开

Environment Info
ng-zorro-antd 7.4.1
Browser chrome
@wenqi73
Copy link
Member

wenqi73 commented Jun 19, 2019

使用了 [nzOpen]="endOpen" 后弹窗状态由 endOpen 来控制。

@chenxiangjun2010
Copy link
Author

问题表面上是这样,可以通过endOpen控制,但是估计这么做的原因是,强制用户先选择开始时间再选择结束时间,因为假如先选择结束时间之后,那么开始时间的不可选日期就不对了,比如结束选择2019-6-18,那么开始时间只能选择2019-6-17之前,不能选择2019-6-18,

@wenqi73
Copy link
Member

wenqi73 commented Oct 22, 2020

@chenxiangjun2010 已支持 open() close() 方法。#5777

@wenqi73 wenqi73 closed this as completed Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants