Merge title box

This commit is contained in:
Ian Gulliver
2026-10-15 19:50:43 -07:00
parent 2899a8fcdc
commit 1746f6b53e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ function modal(content, buttons, anchor = null) {
const input = dialog.querySelector("input"); const input = dialog.querySelector("input");
if (input) { if (input) {
input.focus(); input.focus();
input.select(); input.setSelectionRange(0, input.value.length, "backward");
return; return;
} }
actions.at(-1)?.focus(); actions.at(-1)?.focus();
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -102,7 +102,7 @@ function modal(content: string | Node[], buttons: { label: string; value: string
const input = dialog.querySelector("input"); const input = dialog.querySelector("input");
if (input) { if (input) {
input.focus(); input.focus();
input.select(); input.setSelectionRange(0, input.value.length, "backward");
return; return;
} }
actions.at(-1)?.focus(); actions.at(-1)?.focus();