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

Select 使用 getFieldDecorator 装饰后,选中项后 Select 值展示未更新 #16557

Closed
1 task
shuqinzhao opened this issue May 13, 2019 · 1 comment
Closed
1 task
Assignees

Comments

@shuqinzhao
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

  1. 未使用 getFieldDecorator 装饰过的 Select 选择后,展示值自动更新
  2. 使用 getFieldDecorator 装饰过的 Select 选中项后,展示值未自动更新
  3. 同一个 Form 中的 Select 选中项改变后,步骤2中的 Select 展示值改变了

What is expected?

使用 getFieldDecorator 装饰过的 Select 选中项后,展示值自动更新

What is actually happening?

使用 getFieldDecorator 装饰过的 Select 选中项后,展示值未自动更新

Environment Info
antd 3.17.0
React react@16.3.0
System node@8.4.0
Browser Chrome@74.0.3729.131
@afc163
Copy link
Member

afc163 commented May 13, 2019

react@16.3.0 有一个 bug:facebook/react#12528

升级到 react 最新版本即可。

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