Within my ReactJS application, I have implemented a list of Material UI ToolTips with IconButtons nested inside a div
element featuring overflow: scroll
.
One specific row displays the Material UI ToolTip in the following manner:
<ClickAwayListener onClickAway={handleTooltipClose}>
<Tooltip
PopperProps={{
disablePortal: true,
}}
onClose={handleTooltipClose}
open={open}
disableFocusListener
disableHoverListener
disableTouchListener
title={data}
arrow
>
<InfoOutlinedIcon
className={classes.root}
onClick={handleTooltipOpen}
/>
</Tooltip>
</ClickAwayListener>
There are issues with the positioning and display of the tooltip, as illustrated here:
https://i.sstatic.net/t18DO.jpg https://i.sstatic.net/PIoiL.jpg
Unfortunately, applying overflow: visible;
to the div container housing the table and ToolTips is not an option due to the desired scroll behavior. Is there a workaround to prevent the ToolTip from being clipped by the container?