fix: remove browser-native required validation blocking doc picker submissions

Forms lacked novalidate and textareas had required, so the browser fired
HTML5 validation before tools.js could intercept — blocking submissions
where text came from the doc picker or file upload rather than the textarea.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-24 00:34:38 +02:00
parent 2e8fda72d2
commit fa42c7223a
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
<form id="toolForm" class="tool-form">
<form id="toolForm" class="tool-form" novalidate>
<div class="control-row" id="languageControl">
<span class="control-label">Language</span>
<label><input type="radio" name="language" value="en" checked> English</label>
@@ -82,7 +82,7 @@
</div>
<label class="input-label" for="toolInput" id="inputLabel">Question</label>
<textarea id="toolInput" name="toolInput" rows="10" required></textarea>
<textarea id="toolInput" name="toolInput" rows="10"></textarea>
<div class="form-footer">
<p id="toolStatus" class="form-status" role="status" aria-live="polite"></p>