#22: refactor application forms

This commit is contained in:
SleepWalker
2018-05-05 12:01:25 +03:00
parent f6b925122f
commit c454c58d5c
15 changed files with 212 additions and 212 deletions

View File

@@ -74,11 +74,17 @@ export default class TextArea extends FormInputComponent<{
}
getValue() {
return this.el.value;
return this.el && this.el.value;
}
focus() {
this.el.focus();
setTimeout(this.el.focus.bind(this.el), 10);
const { el } = this;
if (!el) {
return;
}
el.focus();
setTimeout(el.focus.bind(el), 10);
}
}