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:
+2
-2
@@ -6,7 +6,7 @@ $toolKind = 'Timeline Builder';
|
||||
$toolBadge = 'process-and-forget';
|
||||
require_once __DIR__ . '/includes/layout.php';
|
||||
?>
|
||||
<form id="toolForm" class="tool-form">
|
||||
<form id="toolForm" class="tool-form" novalidate>
|
||||
|
||||
<div class="lang-switcher" id="timelineLangSwitcher" role="group" aria-label="UI language">
|
||||
<button type="button" class="lang-btn is-active" data-lang="en">🇬🇧 EN</button>
|
||||
@@ -87,7 +87,7 @@ require_once __DIR__ . '/includes/layout.php';
|
||||
</div>
|
||||
|
||||
<label class="input-label" for="toolInput" id="inputLabel" data-i18n="timelineInputLabel">Pasted text</label>
|
||||
<textarea id="toolInput" name="toolInput" rows="10" required data-i18n-placeholder="timelineInputPlaceholder" placeholder="Paste case notes, court decisions, or correspondence containing dates and events."></textarea>
|
||||
<textarea id="toolInput" name="toolInput" rows="10" data-i18n-placeholder="timelineInputPlaceholder" placeholder="Paste case notes, court decisions, or correspondence containing dates and events."></textarea>
|
||||
|
||||
<div id="timelineNotesSection">
|
||||
<label class="input-label" for="timelineNotes" data-i18n="timelineNotesLabel">Context notes <small class="control-hint">(optional)</small></label>
|
||||
|
||||
Reference in New Issue
Block a user