Skip to content

Commit aef975c

Browse files
authored
[10.x] Attributes support on default component slot (#48039)
* Attributes support on default component slot * Remove import
1 parent 2d3fdc0 commit aef975c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Illuminate/View/Concerns/ManagesComponents.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Illuminate\Contracts\Support\Htmlable;
66
use Illuminate\Contracts\View\View;
77
use Illuminate\Support\Arr;
8-
use Illuminate\Support\HtmlString;
98
use Illuminate\View\ComponentSlot;
109

1110
trait ManagesComponents
@@ -115,7 +114,7 @@ public function renderComponent()
115114
*/
116115
protected function componentData()
117116
{
118-
$defaultSlot = new HtmlString(trim(ob_get_clean()));
117+
$defaultSlot = new ComponentSlot(trim(ob_get_clean()));
119118

120119
$slots = array_merge([
121120
'__default' => $defaultSlot,

0 commit comments

Comments
 (0)