-
-
Notifications
You must be signed in to change notification settings - Fork 47.9k
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 中的 表单初始化的时候如何激活某个文本框? #1008
Comments
Modal 只有在第一次显示时才会触发 Edit: 这个方法也不行。。事实上,在 Chrome 里面直接
|
目前已解决,在 modal 中得使用 setTimeout 来调用相应的 focus 后才有效果。
|
@someok 你的方法确实有效果,为啥要setTimeout呢? |
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. |
Modal 中的 Form componentDidMount 只调用了一次,于是多次显示 Modal 的时候无法做激活操作了。
不知是否有办法处理?
The text was updated successfully, but these errors were encountered: