Skip to content

Commit 6eaeadb

Browse files
docs(templates): correct item markup
1 parent 3bc61d5 commit 6eaeadb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/website/docs/templates.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ autocomplete({
147147
// ...
148148
templates: {
149149
item({ item }) {
150-
return html`<div>${item.name}</div>`
150+
return html`<div>${item.name}</div>`;
151151
},
152152
},
153153
},
@@ -228,7 +228,7 @@ autocomplete({
228228
// ...
229229
templates: {
230230
item({ item }) {
231-
return <li class="list-group-item">{item.name}</li>;
231+
return <div class="list-group-item-action">{item.name}</div>;
232232
},
233233
},
234234
},
@@ -255,9 +255,9 @@ autocomplete({
255255
templates: {
256256
item({ item }) {
257257
return (
258-
<li class="py-2 px-4 rounded-sm border border-gray-200">
258+
<div class="py-2 px-4 rounded-sm border border-gray-200">
259259
{item.name}
260-
</li>
260+
</div>
261261
);
262262
},
263263
},

0 commit comments

Comments
 (0)