mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
#22: refactor application forms
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user