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

Dropdown 组件的 DropDownProps interface onVisibleChange 有误(官网文档也有误) #4236

Closed
hjin-me opened this issue Dec 14, 2016 · 2 comments · Fixed by #4252
Closed

Comments

@hjin-me
Copy link

hjin-me commented Dec 14, 2016

发生问题的环境是:

  • antd 版本: 2.5.2
  • 操作系统及其版本: TS 2.1.4, Mac OS X
  • 浏览器及其版本: Chrome

您做了什么?请提供尽可能详细的重现步骤。

对比以下三处文档,发现 rc-dropdownonVisibleChange(visible: boolean)
但是 官网和 interface 里面写的是 onVisibleChange({visible:boolean})

rc-dropdown 的 onVisibleChange
https://github.com/react-component/dropdown/blob/master/src/Dropdown.jsx#L84

官网文档描述:
https://ant.design/components/dropdown-cn/#API

DropDownProps interface:
https://github.com/ant-design/ant-design/blob/master/components/dropdown/dropdown.tsx#L9

@yesmeck
Copy link
Member

yesmeck commented Dec 14, 2016

欢迎 PR。

@lock
Copy link

lock bot commented May 2, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants