Skip to content

Commit

Permalink
Merge pull request ant-design#292 from i06/master
Browse files Browse the repository at this point in the history
Search.js has a mistake var name
  • Loading branch information
zuiidea authored May 15, 2017
2 parents 4832a72 + 1c46693 commit 81e7d2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Search/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Search extends React.Component {
clearVisible: e.target.value !== '',
})
}
handeleSelectChange = value => {
handleSelectChange = value => {
this.setState({
...this.state,
selectValue: value,
Expand All @@ -42,7 +42,7 @@ class Search extends React.Component {
const { clearVisible } = this.state
return (
<Input.Group compact size={size} className={styles.search} style={style}>
{select && <Select ref="searchSelect" onChange={this.handeleSelectChange} size={size} {...selectProps}>
{select && <Select ref="searchSelect" onChange={this.handleSelectChange} size={size} {...selectProps}>
{selectOptions && selectOptions.map((item, key) => <Select.Option value={item.value} key={key}>{item.name || item.value}</Select.Option>)}
</Select>}
<Input ref="searchInput" size={size} onChange={this.handleInputChange} onPressEnter={this.handleSearch} defaultValue={keyword} />
Expand Down

0 comments on commit 81e7d2b

Please sign in to comment.