Removed: KnockoutJS 'hasFocus:' because HTML5 has autofocus=""

Knoin.js now searches for [autofocus] and handles it
This commit is contained in:
djmaze 2020-08-22 01:03:03 +02:00
parent 226f77e392
commit 996723a486
18 changed files with 60 additions and 113 deletions

View file

@ -25,7 +25,6 @@ class DomainAliasPopupView extends AbstractViewNext {
this.savingError = ko.observable('');
this.name = ko.observable('');
this.name.focused = ko.observable(false);
this.alias = ko.observable('');
@ -64,18 +63,11 @@ class DomainAliasPopupView extends AbstractViewNext {
this.clearForm();
}
onShowWithDelay() {
if (!this.name() && !bMobileDevice) {
this.name.focused(true);
}
}
clearForm() {
this.saving(false);
this.savingError('');
this.name('');
this.name.focused(false);
this.alias('');
}