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:
@@ -179,8 +179,8 @@ if ($this->countModules('drawer-left', true)) { $hasClass .= ' has-drawer-left
|
||||
if ($this->countModules('drawer-right', true)) { $hasClass .= ' has-drawer-right'; }
|
||||
|
||||
// Smart Bootstrap component loading - only load what's needed
|
||||
HTMLHelper::_('bootstrap.collapse');
|
||||
if ($this->countModules('drawer-left', true) || $this->countModules('drawer-right', true)) {
|
||||
// Load Bootstrap Offcanvas component for drawers
|
||||
HTMLHelper::_('bootstrap.offcanvas');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user