mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
fix header select
This commit is contained in:
parent
06f472a728
commit
a1c879bd2f
@ -68,7 +68,7 @@ export default class Header extends React.Component {
|
||||
}
|
||||
|
||||
handleSearch = (value) => {
|
||||
this.context.router.push({ pathname: value });
|
||||
//this.context.router.push({ pathname: value });
|
||||
}
|
||||
|
||||
handleSelectFilter = (value, option) => {
|
||||
@ -135,6 +135,7 @@ export default class Header extends React.Component {
|
||||
placeholder="搜索组件..."
|
||||
value={undefined}
|
||||
optionFilterProp="data-label"
|
||||
optionLabelProp="data-label"
|
||||
filterOption={this.handleSelectFilter}
|
||||
onSelect={this.handleSearch}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user