Skip to content

Commit bf3a0f0

Browse files
committed
minor #2313 [LiveComponent] Fix documentation for select data-model (Nek-)
This PR was merged into the 2.x branch. Discussion ---------- [LiveComponent] Fix documentation for select data-model | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Issues | None | License | MIT <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - For new features, provide some code snippets to help understand usage. - Features and deprecations must be submitted against branch main. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Commits ------- 764d5ba [LiveComponent] Fix documentation for select data-model
2 parents 5c20ec3 + 764d5ba commit bf3a0f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveComponent/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ the user to switch the *entity* to another? For example:
620620

621621
<select data-model="post">
622622
{% for post in posts %}
623-
<option data-model="{{ post.id }}">{{ post.title }}</option>
623+
<option value="{{ post.id }}">{{ post.title }}</option>
624624
{% endfor %}
625625
</select>
626626

0 commit comments

Comments
 (0)