From 0f5410d22574f0cb63111156e9f245e7a7aa3c01 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Tue, 9 Dec 2025 18:38:56 +0800 Subject: [PATCH] fix: Fix focus loss issue in file selection component (#11281) Refs #11272 --- 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 d7d3f4753..24219fa87 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);