aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChristian Fehmer <[email protected]>2024-06-17 16:35:44 +0200
committerGitHub <[email protected]>2024-06-17 16:35:44 +0200
commitd733996b092ccf4795a2d014ada5d40543ed77d3 (patch)
tree232b895b7deaa2b6ac2d0c6109f3d724a9fcadeb
parent768c225036233f19aaeeffb5d5ab51d13217f783 (diff)
downloadmonkeytype-d733996b092ccf4795a2d014ada5d40543ed77d3.tar.gz
monkeytype-d733996b092ccf4795a2d014ada5d40543ed77d3.zip
impr(custom theme rename modal): automatically select input (@fehmer) (#5487)
-rw-r--r--frontend/src/ts/modals/simple-modals.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontend/src/ts/modals/simple-modals.ts b/frontend/src/ts/modals/simple-modals.ts
index 5a7772df0..f9a21d82e 100644
--- a/frontend/src/ts/modals/simple-modals.ts
+++ b/frontend/src/ts/modals/simple-modals.ts
@@ -469,8 +469,8 @@ class SimpleModal {
activePopup = this;
this.parameters = parameters;
void modal.show({
- ...showOptions,
focusFirstInput: true,
+ ...showOptions,
beforeAnimation: async () => {
this.beforeInitFn?.(this);
this.init();
@@ -1926,7 +1926,9 @@ $(".pageSettings").on(
(e) => {
const $parentElement = $(e.currentTarget).parent(".customTheme.button");
const customThemeId = $parentElement.attr("customThemeId") as string;
- showPopup("updateCustomTheme", [customThemeId]);
+ showPopup("updateCustomTheme", [customThemeId], {
+ focusFirstInput: "focusAndSelect",
+ });
}
);