-
-
Notifications
You must be signed in to change notification settings - Fork 789
Open
Description
What steps will reproduce the problem?
NavBar::begin([
'collapseOptions'=> false
]);
// content
NavBar::end();What's expected?
Expecting rendered Bootstrap 5 navigation bar
What do you get instead?
vendor/yiisoft/yii2-bootstrap5/src/NavBar.php at line 219
if ($this->offcanvasOptions !== false) {
$bsData = ['bs-toggle' => 'offcanvas', 'bs-target' => '#' . $this->offcanvasOptions['id']];
$aria = $this->offcanvasOptions['id'];
} else {
// Trying to access array offset on false
$bsData = ['bs-toggle' => 'collapse', 'bs-target' => '#' . $this->collapseOptions['id']];
$aria = $this->collapseOptions['id'];
}Additional info
| Q | A |
|---|---|
| Yii version | 2.0.49.3 |
| PHP version | 8.3.2 |
| Operating system | macOS |
Metadata
Metadata
Assignees
Labels
No labels