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 组建 mode 参数为 'year' 时无法选择年份 #11938

Closed
1 task
fuzhongfeng opened this issue Aug 29, 2018 · 5 comments
Closed
1 task

Datepicker 组建 mode 参数为 'year' 时无法选择年份 #11938

fuzhongfeng opened this issue Aug 29, 2018 · 5 comments
Assignees

Comments

@fuzhongfeng
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.8.4

Environment

codepen 平台 Datepicker 组建

Reproduction link

https://ant.design/components/date-picker-cn/#header

Steps to reproduce

codepen 平台 Datepicker 组建 mode 参数为 "year" 时,可以选择点击并弹出“年”选择面板,但是选择某一年(如2012)之后不能关闭,进而无法选择

What is expected?

可以选择年份

What is actually happening?

不能选择年份


官方给出的 codepen 例子

@ant-design-bot
Copy link
Contributor

Translation of this issue:


Datepicker When the mode parameter is 'year', the year cannot be selected.

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.8.4

Environment

Codepen platform Datepicker

Reproduction link

https://ant.design/components/date-picker-cn/#header

Steps to reproduce

Codepen platform Datepicker When the mode parameter is "year", you can choose to click and pop up the "Year" selection panel, but after selecting a year (such as 2012), you can't close it, so you can't select it.

What is expected?

Can choose year

What is actually happening?

Cannot select year


Official codepen example

@mushan0x0
Copy link
Contributor

mushan0x0 commented Aug 29, 2018

@afc163
Copy link
Member

afc163 commented Aug 29, 2018

Duplicate of #4524

@afc163 afc163 marked this as a duplicate of #4524 Aug 29, 2018
@afc163 afc163 closed this as completed Aug 29, 2018
@zhangyanling77
Copy link
Contributor

https://codepen.io/mushan0x0/pen/zJKqQx?&editors=001 复现地址

<DatePicker mode="year" onPanelChange={(v) => {console.log(v)}}/>

@afc163
Copy link
Member

afc163 commented Jun 5, 2019

#16984

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants