|
@ -52,7 +52,7 @@ 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) : <Input />; |
|
|
React.Children.only(this.props.children) : <Input />; |
|
|
return ( |
|
|
return ( |
|
|
<InputElement {...element.props}>{element}</InputElement> |
|
|
<InputElement>{element}</InputElement> |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|