Skip to content

Commit d733996

Browse files
authored
impr(custom theme rename modal): automatically select input (@fehmer) (#5487)
1 parent 768c225 commit d733996

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

frontend/src/ts/modals/simple-modals.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,8 @@ class SimpleModal {
469469
activePopup = this;
470470
this.parameters = parameters;
471471
void modal.show({
472-
...showOptions,
473472
focusFirstInput: true,
473+
...showOptions,
474474
beforeAnimation: async () => {
475475
this.beforeInitFn?.(this);
476476
this.init();
@@ -1926,7 +1926,9 @@ $(".pageSettings").on(
19261926
(e) => {
19271927
const $parentElement = $(e.currentTarget).parent(".customTheme.button");
19281928
const customThemeId = $parentElement.attr("customThemeId") as string;
1929-
showPopup("updateCustomTheme", [customThemeId]);
1929+
showPopup("updateCustomTheme", [customThemeId], {
1930+
focusFirstInput: "focusAndSelect",
1931+
});
19301932
}
19311933
);
19321934

0 commit comments

Comments
 (0)