formily
formily copied to clipboard
[Bug Report] FormTab not render inactive tab
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
- input value in A1
- click submit
给 A1 的输入框输入值,然后点击提交
What is expected?
validate fail
校验失败,因为 A2、A3 中还有必填项
What is actually happening?
validate success
提交通过了
Package
@formily/[email protected]
看了下源码,应该是 antd 的 items 假如当前不是 active 的不会渲染,导致注册组件行为没有执行,formily 字段模型中没有,所以就没有办法进行数据交互
formily现在还在维护么?感觉社区不是很活跃了,很多issue都没人回复,disscussions也没多少回答。
通过x-component-props
设置forceRender
为true
就好吧