Fix some flow errors

This commit is contained in:
SleepWalker
2018-05-03 08:15:09 +03:00
parent 9760eba3af
commit 6e9542f592
15 changed files with 86 additions and 47 deletions

View File

@ -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);
}