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

AutoComplete can't alignment in the Form.Item #5139

Closed
kangpoves opened this issue Mar 2, 2017 · 3 comments
Closed

AutoComplete can't alignment in the Form.Item #5139

kangpoves opened this issue Mar 2, 2017 · 3 comments

Comments

@kangpoves
Copy link

kangpoves commented Mar 2, 2017

Environment(required)

  • antd version: 2.7.4
  • OS and its version: window10
  • Browser and its version: chrome 56.0.2924.87 (64-bit)

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

I have updated antdesign to 2.7.4 version, Find a problem with existing page.

Form inline and AutoComplete propertie ‘size=small’ in Form.Item cannot align with label

There is no problem before updating.

I find a css properties ‘display:inline-block’ in the class children, I tried to delete it in the browser debugger,Its style is back to normal.

Finally I solved the problem and set a property ‘style={{display: 'inherit'}} ‘ in AutoComplete, But I hope the AntDesign can solve the problem.

@kangpoves
Copy link
Author

kangpoves commented Mar 2, 2017

<FormItem label={ name:}> {getFieldDecorator('name', { initialValue: '', })( <AutoComplete size="small" dataSource={dataSource} onSelect={onSelect} onChange={this.handleChange} placeholder="input here" /> )} </FormItem>

@benjycui
Copy link
Contributor

benjycui commented Mar 2, 2017

Please provide a re-producible demo: http://codepen.io/benjycui/pen/KgPZrE?editors=001

@afc163 afc163 closed this as completed in 70e135c Mar 5, 2017
@lock
Copy link

lock bot commented May 2, 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 2, 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

No branches or pull requests

2 participants