Skip to content

Commit

Permalink
onKeyDown bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Apr 14, 2017
1 parent 0cd85da commit e8c81d1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/auto-complete/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@ export default class AutoComplete extends React.Component<AutoCompleteProps, any
const element = children && React.isValidElement(children) && children.type !== Option ?
React.Children.only(this.props.children) :
<Input/>;
return <InputElement className="ant-input">{element}</InputElement>;
return (
<InputElement
{...element.props}
className={classNames('ant-input', element.props.className)}
>
{element}
</InputElement>
);
}

render() {
Expand Down

0 comments on commit e8c81d1

Please sign in to comment.