Skip to content

Docs: fix Bootstrap bundle loading consistency between dev and static builds#42237

Merged
mdo merged 2 commits into
v6-devfrom
v6-dev-fix-bootstrap-bundle-docs-loading
Apr 22, 2026
Merged

Docs: fix Bootstrap bundle loading consistency between dev and static builds#42237
mdo merged 2 commits into
v6-devfrom
v6-dev-fix-bootstrap-bundle-docs-loading

Conversation

@julien-deramond

@julien-deramond julien-deramond commented Mar 23, 2026

Copy link
Copy Markdown
Member

Fixes #42341, fixes #42340.

Description

In some docs pages, the dropdowns (color modes and versions selector) in the menu are not working, such as https://v6-dev--twbs-bootstrap.netlify.app/docs/6.0/examples/ or https://v6-dev--twbs-bootstrap.netlify.app/docs/6.0/customize/overview/.

The other pages are working because they include a component that is using something from bootstrap.bundle.*.js, like the <Code> component. If this component is not used, Bootstrap JS is not loaded.

Checklist

  • Check npm run start for several pages
  • Check npm run docs and http-server in _site dir for several pages
  • Check here with Netlify for several pages

Warning

With the current fix, it works locally with npm run start, but for Netlify it works only for pages where it didn't work before 🙃 Maybe loading it 2 times causes an issue too.

Live previews

@mdo mdo force-pushed the v6-dev-fix-bootstrap-bundle-docs-loading branch from f6a4f43 to 4a7fc84 Compare April 22, 2026 01:27
@mdo mdo marked this pull request as ready for review April 22, 2026 01:27
@mdo mdo requested a review from a team as a code owner April 22, 2026 01:27
@mdo

mdo commented Apr 22, 2026

Copy link
Copy Markdown
Member

All pages that I tried look good—JS works as intended! Updated the original comment to also mention that this fixes the live alert and toast demos as well.

@mdo mdo merged commit c23e913 into v6-dev Apr 22, 2026
13 checks passed
@mdo mdo deleted the v6-dev-fix-bootstrap-bundle-docs-loading branch April 22, 2026 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

2 participants