mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Fix some flow errors
This commit is contained in:
@ -112,10 +112,14 @@ export default class Input extends FormInputComponent<{
|
||||
}
|
||||
|
||||
getValue() {
|
||||
return this.el.value;
|
||||
return this.el || this.el.value;
|
||||
}
|
||||
|
||||
focus() {
|
||||
if (!this.el) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.el.focus();
|
||||
setTimeout(this.el.focus.bind(this.el), 10);
|
||||
}
|
||||
|
Reference in New Issue
Block a user