Skip to content

Commit

Permalink
Merge pull request #419 from mattkrick/patch-1
Browse files Browse the repository at this point in the history
safely access this.input.value
  • Loading branch information
EtienneLem committed Feb 24, 2021
2 parents 1bf8692 + 4c09781 commit cc257c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/search.js
Expand Up @@ -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) {
Expand Down

0 comments on commit cc257c7

Please sign in to comment.