1
0
Fork 0

Fix notification overlay making "added" notification disappear on touchables

When notification doesn't fit viewport on touch-enabled devices, it makes the canvas extend to its boundaries, braking the fixed positioned elements placement

Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
Egor Savkin 2024-03-19 10:53:22 +08:00
parent 398be02ebe
commit 801936899a
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,9 @@ export function Notification({id, tip, content, sideMenuIsOpen, show, onHide}) {
overlay={props => <Tooltip id={id} {...props}>{tip}</Tooltip>} overlay={props => <Tooltip id={id} {...props}>{tip}</Tooltip>}
rootClose={!sideMenuIsOpen} rootClose={!sideMenuIsOpen}
onToggle={onHide} onToggle={onHide}
popperConfig={{
strategy: 'fixed'
}}
> >
{content} {content}
</OverlayTrigger> </OverlayTrigger>