Skip to content

Commit 764d5ba

Browse files
authored
[LiveComponent] Fix documentation for select data-model
1 parent 75054e7 commit 764d5ba

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
@@ -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)