Skip to content

fix(tooltip): preserve raw string title and content data attributes (#43090) - #43113

Open
Aryan9891 wants to merge 1 commit into
twbs:mainfrom
Aryan9891:fix/issue-43090
Open

Aryan9891 wants to merge 1 commit into
twbs:mainfrom
Aryan9891:fix/issue-43090

Conversation

@Aryan9891

Copy link
Copy Markdown

Description

Preserve raw attribute strings for data-bs-title and data-bs-content in Tooltip._getConfig() and fallback null values to empty strings in _configAfterMerge().

Motivation & Context

Fixes #43090 where passing data-bs-title="9.90" resulted in automatic normalization via JSON.parse into numeric 9.9, and data-bs-title="" was normalized to null, causing the typecheck to throw an error and break subsequent tooltip initializations.

Type of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project
  • My change introduces changes to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Related issues

Closes #43090

@Aryan9891
Aryan9891 requested a review from a team as a code owner October 17, 2026 20:50
@julien-deramond julien-deramond added v6 v6, the main branch bug Something does not work as documented js JavaScript or TypeScript sources and plugins labels Oct 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something does not work as documented js JavaScript or TypeScript sources and plugins v6 v6, the main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tooltip/popover: data-bs-title and data-bs-content are reformatted or throw ("9.90" shows as "9.9", empty title throws)

2 participants