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:
+3
-5
@@ -67,15 +67,13 @@
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
<form id="chatForm" class="border-t border-gray-200 dark:border-gray-700 p-3 flex gap-2"
|
||||
<%= activeId ? '' : 'data-needs-thread="1"' %>>
|
||||
<form id="chatForm" class="border-t border-gray-200 dark:border-gray-700 p-3 flex gap-2">
|
||||
<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"
|
||||
placeholder="Frage stellen … (Enter zum Senden, Shift+Enter = Zeilenumbruch)"
|
||||
<%= activeId ? '' : 'disabled' %>></textarea>
|
||||
placeholder="Frage stellen … (Enter zum Senden, Shift+Enter = Zeilenumbruch)"></textarea>
|
||||
<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"
|
||||
id="sendBtn" <%= activeId ? '' : 'disabled' %>>Senden</button>
|
||||
id="sendBtn">Senden</button>
|
||||
</form>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user