mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-17 16:34:44 -05:00
Fixed an issue where double click to open a file in the file manager is not working. #9196
This commit is contained in:
@@ -29,6 +29,7 @@ Housekeeping
|
||||
Bug fixes
|
||||
*********
|
||||
|
||||
| `Issue #9196 <https://github.com/pgadmin-org/pgadmin4/issues/9196>`_ - Fixed an issue where double click to open a file in the file manager is not working.
|
||||
| `Issue #9380 <https://github.com/pgadmin-org/pgadmin4/issues/9380>`_ - Fixed an issue where the Query History panel would auto-scroll to the top and did not preserve the scroll bar position for the selected entry.
|
||||
|
||||
|
||||
|
||||
@@ -690,7 +690,7 @@ export default function FileManager({params, closeModal, onOK, onCancel, sharedS
|
||||
const onItemEnter = useCallback(async (row)=>{
|
||||
if(row.file_type == 'dir' || row.file_type == 'drive') {
|
||||
await openDir(row.Path, selectedSS);
|
||||
} else if(params.dialog_type == 'select_file') {
|
||||
} else if(params.dialog_type == 'select_file' || params.dialog_type == 'open_file') {
|
||||
onOkClick();
|
||||
}
|
||||
}, [finalItems]);
|
||||
|
||||
@@ -113,7 +113,10 @@ export function CustomRow({inTest=false, ...props}) {
|
||||
props.onRowClick?.(args.row);
|
||||
};
|
||||
|
||||
const onCellDoubleClick = (args) => {
|
||||
const onCellDoubleClick = (args, e) => {
|
||||
// check if grid default is prevented.
|
||||
props.onCellDoubleClick?.(args, e);
|
||||
if(e.isGridDefaultPrevented()) return;
|
||||
gridUtils.onItemEnter?.(args.row);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user