Skip to content

fix(Tooltip, Popover): cancel the show timer and drop aria-describedby on hide, empty content and destroy - #313

Merged
xidedix merged 1 commit into
v5.7from
fix/tooltip-popover-quick-hide
Oct 19, 2026
Merged

xidedix merged 1 commit into
v5.7from
fix/tooltip-popover-quick-hide

Conversation

@xidedix

@xidedix xidedix commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Tooltip and Popover left the host with aria-describedby pointing at a tooltip that no longer exists.

  • Hide within 150 ms of show did not cancel the show timer: it set tooltipId and dropped d-none, then the hide timer detached the view.
  • Content emptied while shown kept the old id; emptied within 150 ms of show let the timer run on a destroyed tooltip.
  • Destroy within 150 ms of show ran the timer on a dead view.

destroyTooltipElement() now cancels both timers and clears tooltipId, removeTooltipElement() cancels the show timer, and the empty-content branch marks the host for check so the binding drops the id.

Verified: lint, full suite, lib build; on the docs tooltip page five quick hover/leave runs leave a dangling id on 5.7.37 and none with this change; other tooltip, popover, dropdown, widgets and sidebar checks unchanged.

…y on hide, empty content and destroy

Hide or empty content within 150 ms of show let the timer set aria-describedby to a detached tooltip; empty content after show kept the old id; destroy ran the timer on a dead view.
@xidedix
xidedix force-pushed the fix/tooltip-popover-quick-hide branch from b7e22a5 to 6326372 Compare October 19, 2026 22:33
@xidedix
xidedix merged commit dbebeb2 into v5.7 Oct 19, 2026
9 checks passed
@xidedix
xidedix deleted the fix/tooltip-popover-quick-hide branch October 19, 2026 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant