You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
ly4236
changed the title
🐛[BUG] ModalFrom在同时设置了request和destroyOnClose时,加载过程中会报错
🐛[BUG] ModalFrom在同时设置了request和destroyOnClose时,加载过程中关闭ModalForm会报错
Nov 13, 2024
ly4236
changed the title
🐛[BUG] ModalFrom在同时设置了request和destroyOnClose时,加载过程中关闭ModalForm会报错
🐛[BUG] ModalFrom在同时设置了formRef、request和destroyOnClose时,加载过程中关闭ModalForm会报错
Nov 13, 2024
🐛 bug 描述
ModalFrom在同时设置了formRef、request和destroyOnClose时,加载过程中关闭ModalForm会报错 “form.resetFields is not a function”。
📷 复现步骤
codesandbox
© 版本信息
暂时解决方案
不在使用 request,用 formRef 接管。不过这样的话,不知道怎么让 form 进入 loading 状态。
想知道开发者对于 request 的设计思路。是一次性加载完全部数据时才使用,还是只要是首次加载(表单需要其他操作来确认其他数据)就可以使用。
The text was updated successfully, but these errors were encountered: