From 46ee83890cd267e766baabb9424f36c3a21231e5 Mon Sep 17 00:00:00 2001 From: ssongliu Date: Tue, 9 Dec 2025 18:30:02 +0800 Subject: [PATCH] fix: Fix focus loss issue in file selection component --- frontend/src/components/file-list/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/file-list/index.vue b/frontend/src/components/file-list/index.vue index d7d3f4753cf8..24219fa87ef6 100644 --- a/frontend/src/components/file-list/index.vue +++ b/frontend/src/components/file-list/index.vue @@ -227,7 +227,10 @@ const openDir = async (row: File.File, column: any, event: any) => { } selectRow.value.path = ''; }; -const handleRowClick = (row: File.File, column: any, event: any) => { +const handleRowClick = (row: any, column: any, event: any) => { + if (row.isCreate) { + return; + } debouncedOpenDir(row, column, event); }; const debouncedOpenDir = debounce(openDir, 300);