You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(tooltip): resolve native tooltip flash, async teardown leaks, and dynamic text
This overhauls the Tooltip component to handle dynamic updates properly:
- Initializes tooltip via options `title` instead of `data-original-title`
attribute, removing the native browser tooltip fallback flash.
- Updates `.tooltip-inner` in-place when text dynamically changes to
avoid race conditions with asynchronous teardown.
- Calls `tooltip.show()` after text updates to force recalculation of
absolute coordinates, preventing vertical misalignment.
- Strips `.fade` class immediately during DOM changes to enforce
synchronous cleanup and prevent stranded tooltips.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
// @ts-expect-error We don't want this arg to be part of the public API. It only exists to prevent deprecation warnings when using `$.tooltip` in this component.
// @ts-expect-error We don't want this arg to be part of the public API. It only exists to prevent deprecation warnings when using `$.tooltip` in this component.
0 commit comments