Timothy Jaeryang Baek 3 月之前
父节点
当前提交
c107a0cbf4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/lib/components/chat/MessageInput.svelte

+ 2 - 2
src/lib/components/chat/MessageInput.svelte

@@ -362,8 +362,8 @@
 			text = await textVariableHandler(text || '');
 
 			if ($settings?.richTextInput ?? true) {
-				chatInputElement.setText(text);
-				chatInputElement.focus();
+				chatInputElement?.setText(text);
+				chatInputElement?.focus();
 			} else {
 				chatInput.value = text;
 				prompt = text;