Skip to content

Commit

Permalink
Set SelectPopover filter text from state (Graylog2#4793)
Browse files Browse the repository at this point in the history
This allows us to maintain the filter text if the SelectPopover is hidden
while a filter is set, and then open the popover again.
  • Loading branch information
edmundoa authored and Marius Sturm committed May 16, 2018
1 parent 365d26f commit 252cdc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const SelectPopover = createReactClass({
renderDataFilter(items) {
return (
<FormGroup controlId="dataFilterInput" className={style.dataFilterInput}>
<FormControl type="text" placeholder={this.props.filterPlaceholder} onChange={this.handleFilterChange(items)} />
<FormControl type="text" placeholder={this.props.filterPlaceholder} value={this.state.filterText} onChange={this.handleFilterChange(items)} />
</FormGroup>
);
},
Expand Down

0 comments on commit 252cdc3

Please sign in to comment.