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

DatePicker组件的nzOpen属性有问题 #5771

Closed
lcq9732 opened this issue Sep 14, 2020 · 1 comment
Closed

DatePicker组件的nzOpen属性有问题 #5771

lcq9732 opened this issue Sep 14, 2020 · 1 comment
Assignees
Labels
Component: DatePicker 💬 Discussion Need more insights to this issue

Comments

@lcq9732
Copy link

lcq9732 commented Sep 14, 2020

Reproduction link

https://codesandbox.io/s/amazing-bush-dtijh?file=/src/app/app.component.ts

Steps to reproduce

1。打开后就可以看到第一个日期选择,不能打开选择器
2。第二个日期选择,日期选择器一直开着,关闭不了,且没有Mask层

What is expected?

设置nzOpen=true后打开选择器,用户选择后要后可以关闭,在打开选择器时,要有Mask
即与select组件中的nzOpen属性行为一致

What is actually happening?

DatePicker中的nzOpen与Select中的nzOpen行为不一致。且不能正常工作

Environment Info
ng-zorro-antd 9.3.0
Browser Chrome Lastest

select组件中有一个属性nzOpen,通过这个属性可以控制下拉框的显示与隐藏,但在DatePicker组件中也nzOpen属性,却是用来控制日期选择一直显示或不可显示;是否可以提供一个与select类似的功能来代码打开或关闭日期选择框?

@wenqi73 wenqi73 reopened this Sep 17, 2020
@wenqi73 wenqi73 added the 💬 Discussion Need more insights to this issue label Sep 17, 2020
@wenqi73
Copy link
Member

wenqi73 commented Dec 22, 2020

nzOpen 保留,但文档不再提及。推荐使用 open() close()

@wenqi73 wenqi73 closed this as completed Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: DatePicker 💬 Discussion Need more insights to this issue
Projects
None yet
Development

No branches or pull requests

3 participants