safely access this.input.value

master
Matt Krick 2020-03-18 11:14:38 -05:00 committed by mashirozx
parent 3a97898c5b
commit 612dae7b08
1 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,9 @@ export default class Search extends React.PureComponent {
}
handleChange() {
this.search(this.input.value)
if (this.input) {
this.search(this.input.value)
}
}
handleKeyUp(e) {