diff --git a/packages/main/src/components/AnalyticalTable/VerticalResizer.tsx b/packages/main/src/components/AnalyticalTable/VerticalResizer.tsx index 92a8859a267..6fc313b031a 100644 --- a/packages/main/src/components/AnalyticalTable/VerticalResizer.tsx +++ b/packages/main/src/components/AnalyticalTable/VerticalResizer.tsx @@ -1,6 +1,7 @@ import { useStylesheet, useI18nBundle } from '@ui5/webcomponents-react-base'; import type { MutableRefObject } from 'react'; import { useCallback, useEffect, useRef, useState } from 'react'; +import { createPortal } from 'react-dom'; import { DRAG_TO_RESIZE } from '../../i18n/i18n-defaults.js'; import { classNames, styleData } from './VerticalResizer.module.css.js'; @@ -136,6 +137,14 @@ export const VerticalResizer = (props: VerticalResizerProps) => { isInitial.current = false; }, [rowsLength, visibleRows]); + const [allowed, setAllowed] = useState(false); + useEffect(() => { + setAllowed(true); + }, []); + if (!allowed) { + return null; + } + return (
{ role="separator" title={i18nBundle.getText(DRAG_TO_RESIZE)} > - {resizerPosition && isDragging && ( -
- )} + {resizerPosition && + isDragging && + createPortal( +
, + document.body + )}
); };