Merge pull request #419 from mattkrick/patch-1
safely access this.input.valuedependabot/npm_and_yarn/elliptic-6.5.4
commit
cc257c79cf
|
@ -65,8 +65,10 @@ export default class Search extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleChange() {
|
handleChange() {
|
||||||
|
if (this.input) {
|
||||||
this.search(this.input.value)
|
this.search(this.input.value)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
handleKeyUp(e) {
|
handleKeyUp(e) {
|
||||||
if (e.keyCode === 13) {
|
if (e.keyCode === 13) {
|
||||||
|
|
Loading…
Reference in New Issue