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

createFrom 之后, 调用ref的问题 #4196

Closed
conan2008 opened this issue Dec 9, 2016 · 4 comments
Closed

createFrom 之后, 调用ref的问题 #4196

conan2008 opened this issue Dec 9, 2016 · 4 comments
Assignees

Comments

@conan2008
Copy link

发生问题的环境是:

  • antd 版本: 1.10.0
  • 操作系统及其版本: win10
  • 浏览器及其版本:

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

您期待的结果是:

实际上的结果是:

看了#2843 等等, 但是1.10.0 版本 设置了withRef,
this.refs.xxx.refs.wrappedComponent.refs.formWrappedComponent 也不行

this.refs.xxx.refs.wrappedComponent是 undefined

可重现的在线演示

@benjycui
Copy link
Contributor

benjycui commented Dec 9, 2016

你要通过 ref 调用什么方法?

@benjycui benjycui self-assigned this Dec 9, 2016
@afc163
Copy link
Member

afc163 commented Dec 12, 2016

尝试升级到 1.11 或 2.5

@afc163 afc163 closed this as completed Dec 12, 2016
@JJAWX
Copy link

JJAWX commented Dec 22, 2016

this.props.form.getFieldInstance(xxx)可以获取到实例

@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.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants