Load Bootstrap collapse component for mobile menu toggle

The navbar hamburger uses data-bs-toggle="collapse" but the
Bootstrap collapse JS was never loaded. Now loaded unconditionally
since the main menu always needs it on mobile viewports.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-04 15:34:08 -05:00
parent 6f72b0ffcd
commit 1205690dcb

View File

@@ -179,8 +179,8 @@ if ($this->countModules('drawer-left', true)) { $hasClass .= ' has-drawer-left
if ($this->countModules('drawer-right', true)) { $hasClass .= ' has-drawer-right'; } if ($this->countModules('drawer-right', true)) { $hasClass .= ' has-drawer-right'; }
// Smart Bootstrap component loading - only load what's needed // Smart Bootstrap component loading - only load what's needed
HTMLHelper::_('bootstrap.collapse');
if ($this->countModules('drawer-left', true) || $this->countModules('drawer-right', true)) { if ($this->countModules('drawer-left', true) || $this->countModules('drawer-right', true)) {
// Load Bootstrap Offcanvas component for drawers
HTMLHelper::_('bootstrap.offcanvas'); HTMLHelper::_('bootstrap.offcanvas');
} }