From 93f461344051e8d44c4a50748b7bdc0eae18bcac Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 12 Sep 2020 16:21:10 -0500 Subject: [PATCH] fix bug in dynamic attributes --- src/Illuminate/View/ComponentAttributeBag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/View/ComponentAttributeBag.php b/src/Illuminate/View/ComponentAttributeBag.php index 887b84e0e7d8..cf61c2e3e5e7 100644 --- a/src/Illuminate/View/ComponentAttributeBag.php +++ b/src/Illuminate/View/ComponentAttributeBag.php @@ -219,7 +219,7 @@ public function setAttributes(array $attributes) unset($attributes['attributes']); - $attributes = $parentBag->merge($attributes); + $attributes = $parentBag->merge($attributes)->getAttributes(); } $this->attributes = $attributes;