formily icon indicating copy to clipboard operation
formily copied to clipboard

[Bug Report] FormTab not render inactive tab

Open skyfore opened this issue 11 months ago • 3 comments

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. input value in A1
  2. click submit

给 A1 的输入框输入值,然后点击提交

What is expected?

validate fail

校验失败,因为 A2、A3 中还有必填项

What is actually happening?

validate success

提交通过了

Package

@formily/[email protected]


Mar-21-2024 17-30-28

skyfore avatar Mar 21 '24 09:03 skyfore

看了下源码,应该是 antd 的 items 假如当前不是 active 的不会渲染,导致注册组件行为没有执行,formily 字段模型中没有,所以就没有办法进行数据交互

skyfore avatar Mar 21 '24 09:03 skyfore

formily现在还在维护么?感觉社区不是很活跃了,很多issue都没人回复,disscussions也没多少回答。

269378737 avatar Apr 20 '24 13:04 269378737

通过x-component-props设置forceRendertrue就好吧

hmilin avatar Jul 09 '24 02:07 hmilin