mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-17 21:08:25 +08:00
fix: Fix focus loss issue in file selection component (#11281)
Refs #11272
This commit is contained in:
parent
1b7be836ef
commit
0f5410d225
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue