Merge pull request #419 from mattkrick/patch-1

safely access this.input.value
dependabot/npm_and_yarn/elliptic-6.5.4
Etienne Lemay 2021-02-24 12:02:54 -05:00 committed by GitHub
commit cc257c79cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {