Skip to content

Commit

Permalink
Force click-only behavior for SUCCESS and ERROR statuses. (#34725)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvorozhe committed Feb 7, 2022
1 parent 459d61e commit 540dfdf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ const IndicatorButton = ({
}
}
const onMouseLeave = () => {
setShowTooltip(false)
if (typeof onTooltipToogle === `function`) {
onTooltipToogle(false)
if (active && tooltip?.hoverable) {
setShowTooltip(false)
if (typeof onTooltipToogle === `function`) {
onTooltipToogle(false)
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const InfoIndicatorButton = ({
...btnProps,
tooltip: {
...btnProps.tooltip,
overrideShow: visible,
show: visible,
},
}
Expand Down Expand Up @@ -182,6 +183,7 @@ const InfoIndicatorButton = ({
orgId={orgId}
/>
),
overrideShow: true,
closable: true,
hoverable: false,
onClose: closeInfoTooltip,
Expand Down Expand Up @@ -233,6 +235,7 @@ const InfoIndicatorButton = ({
nodeManifestRedirectUrl={nodeManifestRedirectUrl}
/>
),
overrideShow: true,
closable: true,
onClose: closeInfoTooltip,
},
Expand Down

0 comments on commit 540dfdf

Please sign in to comment.