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

Enter key selects 2001 on nz-date-picker #4028

Closed
skwny opened this issue Aug 19, 2019 · 0 comments · Fixed by #4833
Closed

Enter key selects 2001 on nz-date-picker #4028

skwny opened this issue Aug 19, 2019 · 0 comments · Fixed by #4833

Comments

@skwny
Copy link

skwny commented Aug 19, 2019

Reproduction link

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

Steps to reproduce

  1. Click date-picker input box
  2. Pick date
  3. Click 'ok'
  4. Click date-picker input box (again)
  5. Press 'enter' key. Notice year changes to 2001.

What is expected?

Enter key will close date-picker.

What is actually happening?

Enter changes year 2001.

Environment Info
ng-zorro-antd 8.2.0
Browser Version 76.0.3809.100 (Official Build) (64-bit)
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
2 participants