Tooltip/Popover: fix prevented-show lockout and boolean title/content by mdo · Pull Request #42548 · twbs/bootstrap · GitHub
Skip to content

Tooltip/Popover: fix prevented-show lockout and boolean title/content#42548

Open
mdo wants to merge 2 commits into
v6-devfrom
mdo/tooltip-popover-bugfixes
Open

Tooltip/Popover: fix prevented-show lockout and boolean title/content#42548
mdo wants to merge 2 commits into
v6-devfrom
mdo/tooltip-popover-bugfixes

Conversation

@mdo

@mdo mdo commented Jun 24, 2026

Copy link
Copy Markdown
Member

Two small tooltip/popover correctness fixes, one per commit:

Unit tests added for both; full suite passes.

🤖 Generated with Claude Code

mdo added 2 commits June 24, 2026 10:04
A prevented (or not-in-DOM) show() returned early without clearing
_isHovered, leaving it stuck true. For click-triggered tips that made
every later click hit the _enter() early-return, so the tip never
reopened after one preventDefault(). Reset _isHovered on the early
return. Fixes #39861.
data-bs-title="true" / data-bs-content="false" are auto-converted to
booleans by the data-API, which failed the (null|string|element|function)
type check and threw. Extend the existing number-to-string coercion in
_configAfterMerge to booleans. Fixes #41925.
@mdo mdo requested a review from a team as a code owner June 24, 2026 17:04
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