eloigil6 Claude Opus 4.8 commited on
Commit
1abd679
·
1 Parent(s): 613bdc6

Clear the prompt on 'make another', keep the chosen length

Browse files

The 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>

Files changed (1) hide show
  1. 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) => {