content disposition
This commit is contained in:
@@ -270,13 +270,20 @@ const DocumentsPanel = ({
|
||||
}
|
||||
|
||||
if (entry.type === EntryType.folder) {
|
||||
const hasModifier = Boolean(
|
||||
event && (event.shiftKey || event.metaKey || event.ctrlKey || event.altKey),
|
||||
);
|
||||
const isPrimaryClick = Boolean(event && event.type === 'click' && event.button === 0);
|
||||
if (!hasModifier && isPrimaryClick && typeof onFolderSelect === 'function') {
|
||||
onFolderSelect(entry.id);
|
||||
}
|
||||
if (scrollRef.current) {
|
||||
scrollRef.current.focus({ preventScroll: true });
|
||||
}
|
||||
onFocusedRowChange?.(rowKey);
|
||||
}
|
||||
},
|
||||
[onRowSelection, onOpenDetailPanel, onFocusedRowChange],
|
||||
[onRowSelection, onOpenDetailPanel, onFocusedRowChange, onFolderSelect],
|
||||
);
|
||||
|
||||
const handleDocumentClick = useCallback(
|
||||
|
||||
Reference in New Issue
Block a user