Timothy Jaeryang Baek 3 달 전
부모
커밋
45085d04eb
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      src/lib/components/channel/MessageInput.svelte

+ 4 - 3
src/lib/components/channel/MessageInput.svelte

@@ -290,11 +290,12 @@
 
 		content = '';
 		files = [];
-		chatInputElement?.setText('');
-
-		await tick();
 
 		if (chatInputElement) {
+			chatInputElement?.setText('');
+
+			await tick();
+
 			chatInputElement.focus();
 		}
 	};