Skip to content

Commit 7030526

Browse files
committed
minor #1542 [LiveCollectionType] Fix inline rendering example (gpetraroli)
This PR was merged into the 2.x branch. Discussion ---------- [LiveCollectionType] Fix inline rendering example | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | License | MIT Fix error in LiveCollectionType inline rendering example Commits ------- c5a36fb [LiveCollectionType] Fix inline rendering example
2 parents 221e22e + c5a36fb commit 7030526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,7 @@ Inline rendering:
19401940
{% endfor %}
19411941

19421942
{# render the add button #}
1943-
{{ form_widget(form.comments.vars.button_add, { label: '+ Add comment', class: 'btn btn-outline-primary' }) }}
1943+
{{ form_widget(form.comments.vars.button_add, { label: '+ Add comment', attr: { class: 'btn btn-outline-primary' } }) }}
19441944

19451945
{# render rest of the form #}
19461946
{{ form_row(form) }}

0 commit comments

Comments
 (0)