fix: Fix focus loss issue in file selection component (#11281)

Refs #11272
This commit is contained in:
ssongliu 2025-12-09 18:38:56 +08:00 committed by GitHub
parent 1b7be836ef
commit 0f5410d225
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -227,7 +227,10 @@ const openDir = async (row: File.File, column: any, event: any) => {
} }
selectRow.value.path = ''; 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); debouncedOpenDir(row, column, event);
}; };
const debouncedOpenDir = debounce(openDir, 300); const debouncedOpenDir = debounce(openDir, 300);