KI-Chat: Eingabefeld bei neuem/leerem Chat nicht mehr disabled

Das Textfeld war ohne vorhandenen Thread deaktiviert, sodass die erste
Frage (die den Thread erst anlegt) nicht eintippbar war. disabled entfernt;
chat.js legt den Thread weiterhin beim ersten Absenden an.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-07-07 14:14:00 +00:00
co-authored by Claude
parent ead70efa49
commit 8656e92f3c
+3 -5
View File
@@ -67,15 +67,13 @@
<% } %> <% } %>
</div> </div>
<form id="chatForm" class="border-t border-gray-200 dark:border-gray-700 p-3 flex gap-2" <form id="chatForm" class="border-t border-gray-200 dark:border-gray-700 p-3 flex gap-2">
<%= activeId ? '' : 'data-needs-thread="1"' %>>
<textarea id="chatInput" rows="1" autocomplete="off" <textarea id="chatInput" rows="1" autocomplete="off"
class="flex-1 resize-none rounded-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-900 px-3 py-2 text-sm text-gray-800 dark:text-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500" class="flex-1 resize-none rounded-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-900 px-3 py-2 text-sm text-gray-800 dark:text-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500"
placeholder="Frage stellen … (Enter zum Senden, Shift+Enter = Zeilenumbruch)" placeholder="Frage stellen … (Enter zum Senden, Shift+Enter = Zeilenumbruch)"></textarea>
<%= activeId ? '' : 'disabled' %>></textarea>
<button type="submit" <button type="submit"
class="px-4 py-2 rounded-md bg-blue-600 hover:bg-blue-700 text-white text-sm font-medium disabled:opacity-50" class="px-4 py-2 rounded-md bg-blue-600 hover:bg-blue-700 text-white text-sm font-medium disabled:opacity-50"
id="sendBtn" <%= activeId ? '' : 'disabled' %>>Senden</button> id="sendBtn">Senden</button>
</form> </form>
</section> </section>
</div> </div>