You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see only 1 attribute is outputted even though form-input component added extra atribute type="text"
Expected result should of been 2 attributes type and name
I also tried putting :attributes="$attributes" instead of {{ $attributes }}, but same problem occurs.
Am I doing something wrong or not understanding how the attributes work?
The text was updated successfully, but these errors were encountered:
EDIT: Fixed in #36240 (available from laravel v8.28.1)
Description:
I have 2 components and I am trying to pass down attributes from one component to the other.
Steps To Reproduce:
File:
resources/views/home.blade.php
File:
resources/views/components/form-input.blade.php
File:
resources/views/components/input.blade.php
Output:
As you can see only 1 attribute is outputted even though
form-input
component added extra atributetype="text"
Expected result should of been 2 attributes
type
andname
I also tried putting
:attributes="$attributes"
instead of{{ $attributes }}
, but same problem occurs.Am I doing something wrong or not understanding how the attributes work?
The text was updated successfully, but these errors were encountered: