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

nz-date-picker设置[nzShowTime]的nzDefaultOpenValue属性无效 #4331

Closed
EeeEui opened this issue Oct 22, 2019 · 1 comment · Fixed by #4357
Closed

nz-date-picker设置[nzShowTime]的nzDefaultOpenValue属性无效 #4331

EeeEui opened this issue Oct 22, 2019 · 1 comment · Fixed by #4357

Comments

@EeeEui
Copy link

EeeEui commented Oct 22, 2019

Reproduction link

https://stackblitz.com/edit/angular-emkapf

Steps to reproduce

我想让默认值为null的nz-date-picker组建在选择时间时默认选择“00:00:00",于是设置了[nzShowTime]的nzDefaultOpenValue属性。但是打开时间选择面板还是默认选中了当前时间。

What is expected?

打开时间选择面板时默认选择的是设置的时、分、秒。

What is actually happening?

打开时间选择面板时默认选择的是当前时间的时、分、秒。

Environment Info
ng-zorro-antd 8.4.0
Browser chrome
@zorro-bot
Copy link

zorro-bot bot commented Oct 22, 2019

Translation of this issue:

nz-date-picker provided [nzShowTime] Invalid attribute of nzDefaultOpenValue

Reproduction link

Https://stackblitz.com/edit/angular-emkapf

Steps to reproduce

I want the default value is null nz-date-picker set up default is "00:00:00" in the choice of time, then set the [nzShowTime] of nzDefaultOpenValue property. But the opening time selection panel selected by default or the current time.

What is expected?

Default selection when the panel opening timing is set, minutes, seconds.

What is actually happening?

Default selection when the panel is open timing current time, minutes, seconds.

Environment Info
Ng-zorro-antd 8.4.0
Browser chrome

hsuanxyz pushed a commit that referenced this issue Nov 8, 2019
…4357)

* fix(module:date-picker): `nzDefaultOpenValue` not work

* fix: test

* chore: do null check in lower component

Close #4331
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this issue Apr 9, 2020
…G-ZORRO#4357)

* fix(module:date-picker): `nzDefaultOpenValue` not work

* fix: test

* chore: do null check in lower component

Close NG-ZORRO#4331
@hsuanxyz hsuanxyz mentioned this issue Apr 15, 2020
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
…G-ZORRO#4357)

* fix(module:date-picker): `nzDefaultOpenValue` not work

* fix: test

* chore: do null check in lower component

Close NG-ZORRO#4331
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.

2 participants