Ayana H 9 месяцев назад
Родитель
Сommit
fd53c737f6
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/lib/components/layout/Sidebar/ChatItem.svelte

+ 4 - 4
src/lib/components/layout/Sidebar/ChatItem.svelte

@@ -204,10 +204,10 @@
 	const chatTitleInputKeydownHandler = (e) => {
 		if (e.key === 'Enter') {
 			e.preventDefault();
-			 setTimeout(() => {
-                const input = document.getElementById(`chat-title-input-${id}`);
-                if (input) input.blur();
-            }, 0);
+			setTimeout(() => {
+		                const input = document.getElementById(`chat-title-input-${id}`);
+		                if (input) input.blur();
+		        }, 0);
 		} else if (e.key === 'Escape') {
 			e.preventDefault();
 			confirmEdit = false;