Clear the prompt on 'make another', keep the chosen length
Browse filesThe again-btn handler did input.select() (kept the previous prompt text selected). Clear the textarea instead so each new tape starts from an empty prompt; the length slider is untouched, so the chosen duration carries over.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- frontend/ui.js +1 -1
frontend/ui.js
CHANGED
|
@@ -521,8 +521,8 @@ export function initUI({
|
|
| 521 |
});
|
| 522 |
$("again-btn").addEventListener("click", () => {
|
| 523 |
setStage("prompt");
|
|
|
|
| 524 |
input.focus();
|
| 525 |
-
input.select();
|
| 526 |
});
|
| 527 |
$("modal-close").addEventListener("click", () => onRequestClose());
|
| 528 |
window.addEventListener("keydown", (e) => {
|
|
|
|
| 521 |
});
|
| 522 |
$("again-btn").addEventListener("click", () => {
|
| 523 |
setStage("prompt");
|
| 524 |
+
input.value = ""; // start fresh; the length slider keeps its last setting
|
| 525 |
input.focus();
|
|
|
|
| 526 |
});
|
| 527 |
$("modal-close").addEventListener("click", () => onRequestClose());
|
| 528 |
window.addEventListener("keydown", (e) => {
|