mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Вызов фокуса после окончания анимации
This commit is contained in:
@@ -56,6 +56,11 @@ export class Input extends Component {
|
||||
getValue() {
|
||||
return this.el.value;
|
||||
}
|
||||
|
||||
focus() {
|
||||
this.el.focus();
|
||||
setTimeout(this.el.focus.bind(this.el), 10);
|
||||
}
|
||||
}
|
||||
|
||||
export class Checkbox extends Component {
|
||||
@@ -86,6 +91,10 @@ export class Checkbox extends Component {
|
||||
getValue() {
|
||||
return this.el.checked ? 1 : 0;
|
||||
}
|
||||
|
||||
focus() {
|
||||
this.el.focus();
|
||||
}
|
||||
}
|
||||
|
||||
export class Form extends Component {
|
||||
|
Reference in New Issue
Block a user