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

modal里面的元素ref得到的是undefined #15275

Closed
henryzp opened this Issue Mar 8, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@henryzp
Copy link

henryzp commented Mar 8, 2019

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

点击按钮,查看控制台,第一次取到的ref是undefined。

What is expected?

正常的ref dom节点

What is actually happening?

undefined

Environment Info
antd 3.14.1
React 最新
System macos
Browser chrome最新

react-modal,有提供一个API:afterOpenModal,antd能否提供一个类似的api。。。之前有人告诉可以用forceRender这个参数,设置为true,但我在demo中设置了,但没有用。

@henryzp

This comment has been minimized.

Copy link
Author

henryzp commented Mar 8, 2019

是我本地的antd版本问题。。用新版本的没问题

@henryzp henryzp closed this Mar 8, 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.