Skip to content

Commit

Permalink
[10.x] Attributes support on default component slot (#48039)
Browse files Browse the repository at this point in the history
* Attributes support on default component slot

* Remove import
  • Loading branch information
royduin committed Aug 14, 2023
1 parent 2d3fdc0 commit aef975c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Illuminate/View/Concerns/ManagesComponents.php
Expand Up @@ -5,7 +5,6 @@
use Illuminate\Contracts\Support\Htmlable;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Arr;
use Illuminate\Support\HtmlString;
use Illuminate\View\ComponentSlot;

trait ManagesComponents
Expand Down Expand Up @@ -115,7 +114,7 @@ public function renderComponent()
*/
protected function componentData()
{
$defaultSlot = new HtmlString(trim(ob_get_clean()));
$defaultSlot = new ComponentSlot(trim(ob_get_clean()));

$slots = array_merge([
'__default' => $defaultSlot,
Expand Down

0 comments on commit aef975c

Please sign in to comment.