Skip to content

Commit 6e42bf5

Browse files
committed
fix(CFormSwitch): Non-function value encountered for default slot.
1 parent db0441f commit 6e42bf5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/form/CFormSwitch.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ const CFormSwitch = defineComponent({
9494
...(props.id && { for: props.id }),
9595
class: 'form-check-label',
9696
},
97-
props.label,
97+
{
98+
default: () => props.label,
99+
},
98100
),
99101
],
100102
)

0 commit comments

Comments
 (0)