diff --git a/ui/components/table/ResponsiveTable.tsx b/ui/components/table/ResponsiveTable.tsx index da8a7cf3f..be627b337 100644 --- a/ui/components/table/ResponsiveTable.tsx +++ b/ui/components/table/ResponsiveTable.tsx @@ -289,7 +289,11 @@ export const ResponsiveTable = ({ : `actions-for-row-${rowIndex}` } > - {renderActions({ rowIndex, row, ActionsColumn })} + {renderActions({ + rowIndex, + row, + ActionsColumn: BoundActionsColumn, + })} ); const rowExpanded = expanded[rowIndex] !== undefined; @@ -464,3 +468,23 @@ export const DeletableRow = memo( }, ); DeletableRow.displayName = "DeletableRow"; + +const BoundActionsColumn = forwardRef( + (props, ref) => { + return ( + + document.getElementsByClassName( + "pf-v5-c-scroll-outer-wrapper", + )[0] || document.getElementsByTagName("main")[0], + }} + ref={ref} + /> + ); + }, +); +BoundActionsColumn.displayName = "ActionsColumn";