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

Fix/set values behaving abnormally #1633

Open
wants to merge 2 commits into
base: release
Choose a base branch
from

Conversation

wangzishun
Copy link
Contributor

中文模板 / Chinese Template

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Test Case
  • TypeScript definition update
  • Document improve
  • CI/CD improve
  • Branch sync
  • Other, please describe:

PR description

Fixes # 遍历内部的fields过程中,先判断传入的_values中是否存在当前field,不存在则不需要更新

Changelog

🇨🇳 Chinese

  • Fix: 修复form.setValues时意外的重置了其他字段

🇺🇸 English

  • Fix: fix the form.setValues api unexcepted reset other fileds value

Checklist

  • Test or no need
  • Document or no need
  • Changelog or no need

Other

  • Skip Changelog

Additional information

FormApi.setValues 行为与文档不符

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit cc51a51:

Sandbox Source
pr-story Configuration
Semi Design: Simple Story Configuration

@xmsz-stu
Copy link

为啥还没合并

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

Successfully merging this pull request may close these issues.

None yet

3 participants