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
fuzhongfeng opened this issue Aug 29, 2018 · 5 comments

Comments

Projects
None yet
6 participants
@fuzhongfeng
Copy link

commented Aug 29, 2018

  • 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

This comment has been minimized.

Copy link

commented Aug 29, 2018

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

This comment has been minimized.

Copy link
Contributor

commented Aug 29, 2018

@afc163

This comment has been minimized.

Copy link
Member

commented Aug 29, 2018

Duplicate of #4524

@afc163 afc163 marked this as a duplicate of #4524 Aug 29, 2018

@afc163 afc163 closed this Aug 29, 2018

@zhangyanling77

This comment has been minimized.

Copy link

commented Dec 29, 2018

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

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

@afc163

This comment has been minimized.

Copy link
Member

commented Jun 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.