import type { TooltipProps } from 'antd'; import { Button, Tooltip, Typography } from 'antd'; import React from 'react'; const Block = React.forwardRef>((props, ref) => (
)); const App: React.FC = () => { const containerRef1 = React.useRef(null); const containerRef2 = React.useRef(null); React.useEffect(() => { containerRef1.current!.scrollLeft = containerRef1.current!.clientWidth * 0.5; containerRef2.current!.scrollLeft = containerRef2.current!.clientWidth * 0.5; }, []); return (
With `getPopupContainer` trigger.parentElement!} /> Without `getPopupContainer`
); }; export default App;