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 inline style break when input set with addonBefore, addonAfter prop #3524

Closed
chilijung opened this issue Oct 21, 2016 · 1 comment
Closed
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@chilijung
Copy link

when adding inline form, Input button will break when setting addonBefore and addonAfter props.

发生问题的环境是:

  • antd 版本: 2.1.0
  • 操作系统及其版本: mac Sierra
  • 浏览器及其版本: chrome Version 53.0.2785.143

您做了什么?

<Form inline>
  <FormItem
    label="setting"
  >
    <Input
        style={{width: '200px'}}
        addonBefore="http://" // <------------------------- this prop will make inline form break. NOTE: using addonAfter also break inline style.
        placeholder="enter text"/>
  </FormItem>
  <FormItem>
    <Input
        style={{width: '200px'}}
        placeholder="enter text 2"/>
  </FormItem>
</Form>

您期待的结果是:

inline style should work.

实际上的结果是:

可重现的在线演示

http://codepen.io/chilijung/pen/gwkrJg?editors=001

@afc163 afc163 added 🐛 Bug Ant Design Team had proved that this is a bug. Style labels Oct 21, 2016
@lock
Copy link

lock bot commented May 3, 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 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants