Skip to content

Commit dd07ad6

Browse files
committed
minor #431 [LiveComponent] Fix attribute usage in docs (1ed)
This PR was merged into the 2.x branch. Discussion ---------- [LiveComponent] Fix attribute usage in docs | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Tickets | - | License | MIT <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Never break backward compatibility (see https://symfony.com/bc). - Features and deprecations must be submitted against branch main. --> Commits ------- b1b8f72 [LiveComponent] Fix attribute usage in docs
2 parents 9eb58d9 + b1b8f72 commit dd07ad6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/LiveComponent/src/Resources/doc/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,8 +1358,8 @@ collection type, rendering every item in a table row:
13581358
{{ block('form_widget') }}
13591359
</tbody>
13601360
</table>
1361-
{%- if skip_add_button|default(false) is same as false and button_add is defined and not button_add.rendered -%}
1362-
{{ form_widget(button_add, { label: '+ Add Item', class: 'btn btn-outline-primary' }) }}
1361+
{%- if skip_add_button|default(false) is same as(false) and button_add is defined and not button_add.rendered -%}
1362+
{{ form_widget(button_add, { label: '+ Add Item', attr: { class: 'btn btn-outline-primary' } }) }}
13631363
{%- endif -%}
13641364
{%- endblock -%}
13651365
@@ -1392,7 +1392,7 @@ then render it manually after:
13921392
</tbody>
13931393
</table>
13941394
1395-
{{ form_widget(form.todoItems.vars.button_add, { label: '+ Add Item', class: 'btn btn-outline-primary' }) }}
1395+
{{ form_widget(form.todoItems.vars.button_add, { label: '+ Add Item', attr: { class: 'btn btn-outline-primary' } }) }}
13961396
13971397
Modifying Nested Object Properties with the "exposed" Option
13981398
------------------------------------------------------------

0 commit comments

Comments
 (0)