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

when i control MonthPicker's value, the dropdown display is not right. #12929

Closed
1 task
yanguoyu opened this issue Nov 2, 2018 · 7 comments
Closed
1 task
Assignees
Labels
🤔 Need Reproduce We cannot reproduce your problem

Comments

@yanguoyu
Copy link
Contributor

yanguoyu commented Nov 2, 2018

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

Version

3.10.3

Environment

mac osx 10.13 chrome 版本 69.0.3497.100(正式版本) (64 位)

Reproduction link

Edit on CodeSandbox

Steps to reproduce

1: click MonthPicker
2: choose Feb
3: click MothPicker

What is expected?

1: the dropdown panel should choose Nov

What is actually happening?

the dropdown panel should choose Feb

@ant-design-bot
Copy link
Contributor

Hello @yanguoyu. Please provide a online reproduction by forking this link https://u.ant.design/codesandbox-repro. Issues labeled by Need Reproduce will be closed if no activities in 7 days.

你好 @yanguoyu, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击此处创建。7 天内未跟进的 issue 将会被自动关闭。

@afc163 afc163 added the 🤔 Need Reproduce We cannot reproduce your problem label Nov 2, 2018
@yanguoyu
Copy link
Contributor Author

yanguoyu commented Nov 2, 2018

https://codesandbox.io/s/l5yknkwmq
不好意思,上面放错链接了。

@afc163
Copy link
Member

afc163 commented Nov 2, 2018

https://codesandbox.io/s/5mr8w7594l

Please learn https://reactjs.org/docs/forms.html#controlled-components

@afc163 afc163 closed this as completed Nov 2, 2018
@yanguoyu
Copy link
Contributor Author

yanguoyu commented Nov 2, 2018

我决定你可能理解错了,我的意思是如果我控制了不让他修改value,但是弹窗框里面选中的还是之前点击的值。
image

@afc163 afc163 reopened this Nov 2, 2018
@afc163
Copy link
Member

afc163 commented Nov 2, 2018

It is a tricky problem.

@zombieJ
Copy link
Member

zombieJ commented Nov 3, 2018

发现是 antd 的 createPicker 这一层逻辑的问题,找了半天,蛋疼。修一下去...

@zombieJ zombieJ closed this as completed in 81a7d11 Nov 3, 2018
afc163 added a commit that referenced this issue Nov 4, 2018
* master:
  site: add Community discusstion links
  🌐 site: transition component category, close #11629
  Fix Collapse Panel id definition, close #12357
  Fix style overlap with sorter when long text in Table column header
  Add more recommendation
  adjust datepick reset logic
  reset showDate when picker is closed fix #12929
@yanguoyu
Copy link
Contributor Author

yanguoyu commented Nov 5, 2018

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 Need Reproduce We cannot reproduce your problem
Projects
None yet
Development

No branches or pull requests

5 participants