Timothy Jaeryang Baek 4 tuần trước cách đây
mục cha
commit
f68d11ec52
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      src/lib/components/layout/Sidebar/ChatItem.svelte

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

@@ -263,7 +263,10 @@
 
 		setTimeout(() => {
 			const input = document.getElementById(`chat-title-input-${id}`);
-			if (input) input.focus();
+			if (input) {
+				input.focus();
+				input.select();
+			}
 		}, 0);
 	};