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 Report] 表单项 display 从 none 切回 hidden 时不还原状态 #3477

Closed
1 task
suiyun39 opened this issue Oct 21, 2022 · 0 comments · Fixed by #3481
Closed
1 task

[Bug Report] 表单项 display 从 none 切回 hidden 时不还原状态 #3477

suiyun39 opened this issue Oct 21, 2022 · 0 comments · Fixed by #3481

Comments

@suiyun39
Copy link

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

尝试在 none 和 hidden 之间切换, 观察 FormConsumer 展示的状态.

What is expected?

从 none 切换回 hidden 时, 还原表单项状态.

What is actually happening?

Field 默认为 hidden, 在 visible 和 hidden 之间, 在 visible 和 none 之间互相切换均能还原状态. 但是在从 none 切换到 hidden 时状态没有还原.

Package

@formily/react@2.2.9


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant