Skip to content

fix(ui): Fix tooltips staying open#110867

Merged
k-fish merged 1 commit intomasterfrom
fix/ui/tooltip-stays-open-after
Mar 17, 2026
Merged

fix(ui): Fix tooltips staying open#110867
k-fish merged 1 commit intomasterfrom
fix/ui/tooltip-stays-open-after

Conversation

@k-fish
Copy link
Copy Markdown
Member

@k-fish k-fish commented Mar 17, 2026

Summary

Just need to rearrange the click precedence, in this case it looks like there are tooltip props that do the wrapping in the correct order, so using those.

Closes DE-1007
Closes LOGS-429

Just need to rearrange the click precedence, in this case it looks like there are tooltip props that do the wrapping in the correct order, so using those.
@k-fish k-fish requested a review from a team as a code owner March 17, 2026 16:11
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 17, 2026
@linear-code
Copy link
Copy Markdown

linear-code bot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Spread ordering overrides tooltipProps in second CompactSelect
    • Reordered props to place {...triggerProps} before tooltipProps, ensuring explicit tooltip is not overridden by spread operator.

Create PR

Or push these changes by commenting:

@cursor push 50f2441f2b

This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.

tooltipProps={{
title: t('Time interval displayed in this visualization (ex. 5m)'),
}}
{...triggerProps}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spread ordering overrides tooltipProps in second CompactSelect

Medium Severity

In the second CompactSelect's trigger in metricGraph/index.tsx, tooltipProps is placed before {...triggerProps}, so if triggerProps contains a tooltipProps key it will override the explicit tooltip. All three other instances in this PR correctly place tooltipProps after {...triggerProps} to ensure the tooltip isn't clobbered. This instance appears to have the order accidentally reversed, which could cause the tooltip to not display or display incorrect content.

Fix in Cursor Fix in Web

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad bot

@k-fish k-fish merged commit a93814b into master Mar 17, 2026
66 checks passed
@k-fish k-fish deleted the fix/ui/tooltip-stays-open-after branch March 17, 2026 16:35
@github-actions github-actions bot locked and limited conversation to collaborators Apr 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants