Skip to content

Commit 0f5410d

Browse files
authored
fix: Fix focus loss issue in file selection component (#11281)
Refs #11272
1 parent 1b7be83 commit 0f5410d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/src/components/file-list/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,10 @@ const openDir = async (row: File.File, column: any, event: any) => {
227227
}
228228
selectRow.value.path = '';
229229
};
230-
const handleRowClick = (row: File.File, column: any, event: any) => {
230+
const handleRowClick = (row: any, column: any, event: any) => {
231+
if (row.isCreate) {
232+
return;
233+
}
231234
debouncedOpenDir(row, column, event);
232235
};
233236
const debouncedOpenDir = debounce(openDir, 300);

0 commit comments

Comments
 (0)