Skip to content

Commit da66d2c

Browse files
committed
minor #872 [Doc] Fix embedded LiveComponents example (Tiriel)
This PR was merged into the 2.x branch. Discussion ---------- [Doc] Fix embedded LiveComponents example Child and parent props are swapped in example compared to documentation, leading to confusion. | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Tickets | ~ | License | MIT As per documentation in he previous paragraph, `dataModel` prop full length must be written with the form `parentProp:childProp`. Commits ------- 7e77483 Fix embedded LiveComponents example
2 parents 24fa1be + 7e77483 commit da66d2c

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
@@ -2605,7 +2605,7 @@ In the ``EditPost`` template, you render the
26052605

26062606
{{ component('MarkdownTextarea', {
26072607
name: 'post[content]',
2608-
dataModel: 'value:post.content',
2608+
dataModel: 'post.content:value',
26092609
label: 'Content',
26102610
}) }}
26112611

0 commit comments

Comments
 (0)