Skip to content

Commit 27d9a28

Browse files
committed
Update dialog.js
1 parent c497ea0 commit 27d9a28

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/src/script/ui/dialog.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export function AsyncPrompt(label, value) {
8686

8787
BaseDialog(label, area, () => resolve(area.value), () => resolve(null), () => {
8888
area.focus();
89+
area.setSelectionRange(area.value.length, area.value.length); // cursor end
8990
area.style.height = area.scrollHeight + "px";
9091
});
9192
});

0 commit comments

Comments
 (0)