safely access this.input.value

dependabot/npm_and_yarn/elliptic-6.5.4
Matt Krick 2020-03-18 11:14:38 -05:00 committed by GitHub
parent ca3d4e5f0e
commit 4c09781f75
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) {