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

隐藏的表单在form.validateFields().then((values)=>console.log(values)) 后依然能拿到值 #1589

Open
Whf0403 opened this issue Dec 13, 2024 · 0 comments
Assignees

Comments

@Whf0403
Copy link

Whf0403 commented Dec 13, 2024

复现步骤
先让目标表单出现 ,再通过其他表单变化 使目标表单隐藏
再通过form.validateFields().then((values)=>console.log(values))
发现隐藏的表单的值依然会读到
复现链接
https://codesandbox.io/p/sandbox/headless-glitter-5v9mn6?file=%2FApp.tsx%3A4%2C17
截图
image
image

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

2 participants