Timothy J. Baek hace 10 meses
padre
commit
c9137edf5a
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/lib/components/chat/Chat.svelte

+ 3 - 1
src/lib/components/chat/Chat.svelte

@@ -297,9 +297,11 @@
 
 
 	const submitPrompt = async (userPrompt, _user = null) => {
 	const submitPrompt = async (userPrompt, _user = null) => {
 		// Reset chat input textarea
 		// Reset chat input textarea
-		prompt = '';
+		document.getElementById('chat-textarea').value = '';
 		document.getElementById('chat-textarea').style.height = '';
 		document.getElementById('chat-textarea').style.height = '';
 
 
+		prompt = '';
+
 		let _responses = [];
 		let _responses = [];
 		console.log('submitPrompt', $chatId);
 		console.log('submitPrompt', $chatId);