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

Cannot display Form.Item feed icon(hasFeedback) when Input has prefix #5456

Closed
william-yz opened this issue Mar 23, 2017 · 1 comment · Fixed by #5457
Closed

Cannot display Form.Item feed icon(hasFeedback) when Input has prefix #5456

william-yz opened this issue Mar 23, 2017 · 1 comment · Fixed by #5457

Comments

@william-yz
Copy link
Contributor

Environment(required)

  • antd version: 2.8.2
  • OS and its version: ubuntu 16.04 LTS
  • Browser and its version: Chrome Version 56.0.2924.87 (64-bit)

What did you do? Please provide steps to re-produce your problem.

Use Form.Item hasFeedback and Input prefix together.

<FormItem
      {...formItemLayout}
      label="Fail"
      hasFeedback
      validateStatus="error"
      help="Should be combination of numbers & alphabets"
    >
      <Input
        prefix={<Icon type="user" style={{ fontSize: 13 }} />}
        placeholder="input prefix icon with feed icon" id="error" />
 </FormItem>

What do you expected?

The feedback icon can be displayed.

What happen?

Cannot display feedback icon.

Re-producible online demo

william-yz added a commit to william-yz/ant-design that referenced this issue Mar 23, 2017
benjycui pushed a commit that referenced this issue Mar 24, 2017
benjycui pushed a commit that referenced this issue Mar 27, 2017
@lock
Copy link

lock bot commented May 1, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant