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

🧐ModalForm中formRef获取的问题 #11092

Closed
anizephyr opened this issue Dec 14, 2023 · 0 comments
Closed

🧐ModalForm中formRef获取的问题 #11092

anizephyr opened this issue Dec 14, 2023 · 0 comments

Comments

@anizephyr
Copy link

anizephyr commented Dec 14, 2023

各位老师好,感谢协助

父页面里是个card,里面有个table还有就是这个modal
image

然后modal就是个ModalForm
image

这里这么写了个effect不知道是不是可以说明问题
现在父页面打开时是这样的
image

此时输出的formRef.current没有定义
然后点开modal后无变化
image

但是在关闭modal时
image

current却有值了
想请问下这个获取值的时机为什么是这样的呢?
感觉不应该是在页面加载时或者ModalForm初始化时current就拿到值吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant