safely access this.input.value
parent
3a97898c5b
commit
612dae7b08
|
@ -65,7 +65,9 @@ export default class Search extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleChange() {
|
handleChange() {
|
||||||
this.search(this.input.value)
|
if (this.input) {
|
||||||
|
this.search(this.input.value)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handleKeyUp(e) {
|
handleKeyUp(e) {
|
||||||
|
|
Loading…
Reference in New Issue