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

🐛[BUG]Tabs 和 ProForm.useWatch 同时使用时无法正常监听 #8728

Open
dompling opened this issue Sep 14, 2024 · 1 comment
Open

Comments

@dompling
Copy link

dompling commented Sep 14, 2024

🐛 bug 描述

1.第一个TabItem 中,formRef 在ProTable 中,两个Select 搜索条件联动,当使用 useWatch 能正常触发。

2.当多个TabItem 切换时,useWatch会失效。

Tabs 设置了

<Tabs destroyInactiveTabPane items={items} />;

📷 复现步骤

🏞 期望结果

Tabs 组价设置 destroyInactiveTabPane 之后,切换销毁children。当再次切换时,能触发useWatch

💻 复现代码

© 版本信息

  • ProComponents 版本: [2.6.43]
  • Antd 版本: [5.13.1]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

@dompling dompling changed the title 🐛[BUG]Tabs 和 ProForm.useWatch 无法正常监听 🐛[BUG]Tabs 和 ProForm.useWatch 同时使用时无法正常监听 Sep 14, 2024
@dompling
Copy link
Author

路由切换的时候也会出现类似的情况

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