Skip to content

Commit

Permalink
fix(Search): filter attr setting default value. close #1034
Browse files Browse the repository at this point in the history
  • Loading branch information
nianxiongdi committed Aug 29, 2019
1 parent 56e13c0 commit 589c9cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/search/demo/filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class App extends React.Component {
{
label: 'Suppliers',
value: 'Suppliers',
default: true
}
],
value: ''
Expand All @@ -96,7 +95,7 @@ class App extends React.Component {

return (<div>
<Search onChange={this.onChange.bind(this)} onSearch={this.onSearch.bind(this)}
filterProps={{autoWidth: false}}
filterProps={{autoWidth: false}} defaultFilterValue="Suppliers"
filter={this.state.filter} onFilterChange={this.onFilterChange.bind(this)}/>
</div>);
}
Expand Down

0 comments on commit 589c9cb

Please sign in to comment.