Skip to content

Commit 225d451

Browse files
committed
minor #732 [TwigComponent] Fix example "Defaults & Merging" attributes (onEXHovia)
This PR was merged into the 2.x branch. Discussion ---------- [TwigComponent] Fix example "Defaults & Merging" attributes Commits ------- f967c03 [TwigComponent] Fix example "Defaults & Merging" attributes
2 parents d43ab91 + f967c03 commit 225d451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TwigComponent/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ the exception of *class*. For ``class``, the defaults are prepended:
640640
{{ component('my_component', { style: 'color:red' }) }}
641641
642642
{# renders as: #}
643-
<button class="bar" style="color:red">Save</button>
643+
<button class="bar" type="button" style="color:red">Save</button>
644644
645645
{# render component #}
646646
{{ component('my_component', { class: 'foo', type: 'submit' }) }}

0 commit comments

Comments
 (0)