mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 07:56:28 +08:00
parent
75e9e44a2f
commit
b694608af4
@ -52,7 +52,14 @@ export default class AutoComplete extends React.Component<AutoCompleteProps, any
|
|||||||
const element = children && React.isValidElement(children) && children.type !== Option ?
|
const element = children && React.isValidElement(children) && children.type !== Option ?
|
||||||
React.Children.only(this.props.children) :
|
React.Children.only(this.props.children) :
|
||||||
<Input/>;
|
<Input/>;
|
||||||
return <InputElement className="ant-input">{element}</InputElement>;
|
return (
|
||||||
|
<InputElement
|
||||||
|
{...element.props}
|
||||||
|
className={classNames('ant-input', element.props.className)}
|
||||||
|
>
|
||||||
|
{element}
|
||||||
|
</InputElement>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
Loading…
Reference in New Issue
Block a user