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中getFieldDecorator绑定组件的id相同时,点击任一个label会focus错误 #9103

Closed
nic-lidegao opened this issue Jan 24, 2018 · 4 comments

Comments

@nic-lidegao
Copy link

@nic-lidegao nic-lidegao commented Jan 24, 2018

Version

3.1.4

Environment

win10 chrome

Reproduction link

https://codesandbox.io/embed/rr622o2yx4

Steps to reproduce

1.绑定组件id相同时,点击任意一个FormItem的名称,都会focus到第一个组件上

What is expected?

focus到正确组件或者名称点击不可以focus

What is actually happening?

focus到第一个组件

@ant-design-bot
Copy link
Contributor

@ant-design-bot ant-design-bot commented Jan 24, 2018

It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.
See: #4897

@nikogu
Copy link
Contributor

@nikogu nikogu commented Jan 24, 2018

it is right, id need be unique.

@afc163
Copy link
Member

@afc163 afc163 commented Jan 24, 2018

This is strange, this problem should have been fixed in #7351

I will check it now.

@afc163
Copy link
Member

@afc163 afc163 commented Jan 24, 2018

@afc163 afc163 closed this in b3f3121 Jan 24, 2018
@afc163 afc163 mentioned this issue Mar 21, 2019
1 of 1 task complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants