fix: hide original textarea to prevent browser form restoration artifact

- Add display:none to initial textarea (CodeMirror replaces it)
- Add autocomplete=off to prevent browser from restoring old form values
This commit is contained in:
2025-12-22 10:06:55 +01:00
parent 8ee6f3dd0a
commit be5f71bea5

View File

@@ -49,7 +49,8 @@
</div>
</div>
<div class="editor-content">
<textarea id="code-input" class="code-input" spellcheck="false"></textarea>
<!-- Textarea is replaced by CodeMirror; autocomplete off prevents browser form restoration -->
<textarea id="code-input" class="code-input" spellcheck="false" autocomplete="off" style="display: none;"></textarea>
</div>
</div>
<div class="hint-area" id="hint-area">