fix header select

This commit is contained in:
afc163 2016-06-15 19:37:54 +08:00
parent 06f472a728
commit a1c879bd2f

View File

@ -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}
>