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

getValues(force) 未传递 force 标记时不应该影响当前校验状态 #169

Open
micate opened this issue Sep 23, 2019 · 1 comment

Comments

@micate
Copy link

micate commented Sep 23, 2019

在自动保存场景中,期望通过 getValues() 或 getValues(false) 时,不要影响当前已经对用户提示的错误状态,静默的把数据返回回来。

@micate
Copy link
Author

micate commented Sep 23, 2019

看到 https://github.com/uxcore/uxcore-form-field/blob/master/src/FormField.jsx#L134 这里有对 force / instant 做优先级判断。

实际上,直接在 https://github.com/uxcore/uxcore-form/blob/master/src/Form.jsx#L36 中,先行判断 force 为 undefined 时,返回 { values: deepcopy(me.data) } 会有什么问题么?

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

1 participant