mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-10 07:36:09 +08:00
impr(custom theme rename modal): automatically select input (@fehmer) (#5487)
This commit is contained in:
parent
768c225036
commit
d733996b09
1 changed files with 4 additions and 2 deletions
|
@ -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",
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue