Skip to content

Commit

Permalink
minor #2313 [LiveComponent] Fix documentation for select data-model (…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
smnandre committed Oct 31, 2024
2 parents 5c20ec3 + 764d5ba commit bf3a0f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LiveComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ the user to switch the *entity* to another? For example:

<select data-model="post">
{% for post in posts %}
<option data-model="{{ post.id }}">{{ post.title }}</option>
<option value="{{ post.id }}">{{ post.title }}</option>
{% endfor %}
</select>

Expand Down

0 comments on commit bf3a0f0

Please sign in to comment.