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

removeHiddenData不生效 #1622

Open
BingruLin opened this issue Jan 23, 2025 · 1 comment
Open

removeHiddenData不生效 #1622

BingruLin opened this issue Jan 23, 2025 · 1 comment
Assignees

Comments

@BingruLin
Copy link

已有类似问题了,https://github.com/alibaba/x-render/issues/1464。
但我觉得并没有解决,因为从源码上看感觉逻辑就是不对的

2.问题描述(Bug description)
removeHiddenData不生效,只要hidden为真了,表单项直接从数据层里消失了,removeHiddenData作为后置处理没用了。

removeHiddenData只在model层里用了,没在UI层用,怎么能影响到hidden呢?

源码里假如是hidden为真就返回null了,不会运行到下面的Form.Item逻辑,怎么可能会有隐藏字段进到model层数据里呢?这就导致removeHiddenData用不上场

Image

Image

@jincheny
Copy link

一样的问题在PC端xrender removeHiddenData 正常,在form-render-mobile removeHiddenData 配置不生效

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

3 participants