Skip to content

Commit e101c8c

Browse files
committed
inline handler
1 parent 58216af commit e101c8c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

web/src/App.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ export default observer(class App extends Component {
2222
this.props.colors.search();
2323
}
2424
};
25-
handleQueryChange = (event, value) => {
26-
this.props.colors.updateQuery(value);
27-
};
2825

2926
render() {
3027
const listItems = this.props.colors.results.map((color, index) => {
@@ -42,7 +39,7 @@ export default observer(class App extends Component {
4239
floatingLabelFixed={true}
4340
fullWidth={true}
4441
value={this.props.colors.query}
45-
onChange={this.handleQueryChange}
42+
onChange={(event, value) => this.props.colors.updateQuery(value)}
4643
onKeyDown={this.handleKeyDown}/>
4744
<List>
4845
{listItems}

0 commit comments

Comments
 (0)