Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b0a1dbb

Browse files
committedFeb 17, 2025
fix(docs): experiment with <ClientOnly /> to avoid SSR issues on /demo/single-select
1 parent 65a8369 commit b0a1dbb

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed
 

‎docs/demo/single-select.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ import VueSelect from "../../src";
1414
const selected = ref("");
1515
</script>
1616

17-
<VueSelect
18-
v-model="selected"
19-
:options="[
20-
{ label: 'Option #1', value: 'option_1' },
21-
{ label: 'Option #2', value: 'option_2' },
22-
{ label: 'Option #3', value: 'option_3' },
23-
]"
24-
/>
17+
<ClientOnly>
18+
<VueSelect
19+
v-model="selected"
20+
:options="[
21+
{ label: 'Option #1', value: 'option_1' },
22+
{ label: 'Option #2', value: 'option_2' },
23+
{ label: 'Option #3', value: 'option_3' },
24+
]"
25+
/>
26+
</ClientOnly>
2527

2628
Selected value: **{{ selected || "none" }}**
2729

0 commit comments

Comments
 (0)
Please sign in to comment.