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

@ -16,7 +16,6 @@ class AddOpenPgpKeyPopupView extends AbstractViewNext {
super();
this.key = ko.observable('');
this.key.focus = ko.observable(false);
this.key.error = ko.observable(false);
this.key.errorMessage = ko.observable('');
@ -95,10 +94,6 @@ class AddOpenPgpKeyPopupView extends AbstractViewNext {
onShow() {
this.clearPopup();
}
onShowWithDelay() {
this.key.focus(true);
}
}
export { AddOpenPgpKeyPopupView, AddOpenPgpKeyPopupView as default };