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

日期选择框最上方的input框修改日期无效 #4101

Closed
renzhuoyan0 opened this issue Sep 3, 2019 · 4 comments · Fixed by #4833
Closed

日期选择框最上方的input框修改日期无效 #4101

renzhuoyan0 opened this issue Sep 3, 2019 · 4 comments · Fixed by #4833
Assignees

Comments

@renzhuoyan0
Copy link

Reproduction link

https://ng-zorro-antd-start.stackblitz.io

Steps to reproduce

点击日期选择框,然后手动修改上方input里面的日期,点击确认时间不变

What is expected?

时间变成最新修改的时间

What is actually happening?

时间还是自己选中的时间,不是修改以后的时间

Environment Info
ng-zorro-antd 8.2.1
Browser 76.0.3809.132
@zorro-bot
Copy link

zorro-bot bot commented Sep 3, 2019

Translation of this issue:

The input box at the top of the date selection box is invalid.

Reproduction link

https://ng-zorro-antd-start.stackblitz.io

Steps to reproduce

Click the date selection box, then manually modify the date in the above input, click to confirm the time unchanged

What is expected?

Time becomes the latest revision time

What is actually happening?

Time is still the time of your choice, not the time after the modification.

Environment Info
ng-zorro-antd 8.2.1
Browser 76.0.3809.132

@luozt
Copy link

luozt commented Sep 6, 2019

也是建议DatePicker能支持手动输入并自动定位,不需要回车都能定位上去。现在其实我们自己写的业务组件都实现了此交互,希望ng-zorro也跟上吧。

@Bonelol
Copy link

Bonelol commented Sep 8, 2019

It seems causing by custom formats, and checkValidInputDate in CalendarInputComponent returns NULL instead. The dd/MM/yyyy (en-NZ) formatted date will be wrongly converted as MM/dd/yyyy (en-US, or en default?).

@wenqi73
Copy link
Member

wenqi73 commented Sep 25, 2019

@renzhuoyan0 你好,链接失效,请重新发一个。

vthinkxie pushed a commit that referenced this issue Mar 15, 2020
* feat(module:date-picker): support parse input value

* test: fix tests

* chore: support datefnsCompat option

* fix: not import from i18n in core

* chore: change API name and add docs

* chore: change format convert from config to token

* docs: update docs

* chore: move some types

* docs: update docs for date-fns update

* chore: change name and add warning

* docs: update docs
Close #4028
Close #3976
Close #2492
Close #4101
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this issue Apr 9, 2020
* feat(module:date-picker): support parse input value

* test: fix tests

* chore: support datefnsCompat option

* fix: not import from i18n in core

* chore: change API name and add docs

* chore: change format convert from config to token

* docs: update docs

* chore: move some types

* docs: update docs for date-fns update

* chore: change name and add warning

* docs: update docs
Close NG-ZORRO#4028
Close NG-ZORRO#3976
Close NG-ZORRO#2492
Close NG-ZORRO#4101
@hsuanxyz hsuanxyz mentioned this issue Apr 15, 2020
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
* feat(module:date-picker): support parse input value

* test: fix tests

* chore: support datefnsCompat option

* fix: not import from i18n in core

* chore: change API name and add docs

* chore: change format convert from config to token

* docs: update docs

* chore: move some types

* docs: update docs for date-fns update

* chore: change name and add warning

* docs: update docs
Close NG-ZORRO#4028
Close NG-ZORRO#3976
Close NG-ZORRO#2492
Close NG-ZORRO#4101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants