1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-13 13:48:59 +02:00

chore: fix interactive demo steps around constraint values

This commit is contained in:
Nuno Góis 2025-08-01 11:50:05 +01:00
parent 2629705501
commit 79878f9396
No known key found for this signature in database
GPG Key ID: 71ECC689F1091765

View File

@ -105,7 +105,12 @@ export const DemoStepTooltip = ({
if (step.target === 'body') {
return (
<div {...tooltipProps}>
<div
onClick={(e) => {
e.stopPropagation();
}}
{...tooltipProps}
>
<StyledDialog
open
onClose={(_, r) => {
@ -160,7 +165,12 @@ export const DemoStepTooltip = ({
}
return (
<StyledTooltip {...tooltipProps}>
<StyledTooltip
onClick={(e) => {
e.stopPropagation();
}}
{...tooltipProps}
>
<StyledCloseButton aria-label='close' onClick={onClose}>
<CloseIcon />
</StyledCloseButton>