replaced knockout hasfocus with autofocus=""

This commit is contained in:
djmaze 2021-03-23 22:57:40 +01:00
parent 650e962fdf
commit b4ab5b891a
12 changed files with 18 additions and 50 deletions

View file

@ -18,7 +18,6 @@ class FolderCreatePopupView extends AbstractViewPopup {
this.addObservables({
folderName: '',
folderNameFocused: false,
selectedParentValue: UNUSED_OPTION_VALUE
});
@ -59,22 +58,17 @@ class FolderCreatePopupView extends AbstractViewPopup {
}
simpleFolderNameValidation(sName) {
return /^[^\\/]+$/g.test(sName.trim());
return /^[^\\/]+$/g.test(sName);
}
clearPopup() {
this.folderName('');
this.selectedParentValue('');
this.folderNameFocused(false);
}
onShow() {
this.clearPopup();
}
onShowWithDelay() {
this.folderNameFocused(true);
}
}
export { FolderCreatePopupView, FolderCreatePopupView as default };