From 7996995c0eade850882a267af5de1ab602a87e47 Mon Sep 17 00:00:00 2001 From: Anton Date: Tue, 3 May 2022 20:46:38 +0300 Subject: [PATCH] Update Breadcrumbs.php --- src/Breadcrumbs.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Breadcrumbs.php b/src/Breadcrumbs.php index 63ba0be..bac46c1 100644 --- a/src/Breadcrumbs.php +++ b/src/Breadcrumbs.php @@ -103,7 +103,12 @@ class Breadcrumbs extends \yii\widgets\Breadcrumbs } Html::addCssClass($this->options, ['widget' => 'breadcrumb']); - return Html::tag('nav', parent::run(), $this->navOptions); + // @todo update after fixing the parent method + ob_start(); + parent::run(); + $content = ob_get_clean(); + + return Html::tag('nav', $content, $this->navOptions); } /**