Skip to content

Commit 963f7a6

Browse files
author
jarruda
committed
fix(composables): Spread out children from Fragment slots
1 parent bb95ab3 commit 963f7a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/bootstrap-vue-3/src/composables/useFormCheck.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ const getGroupClasses = (items: {
9292
*/
9393
const slotsToElements = (slots: Array<any>, nodeType: string, disabled: boolean) =>
9494
slots
95+
.reduce((acc: Array<any>, slot: any) => slot.type.name === 'Symbol(Fragment)' ?
96+
acc.concat(...slot.children) : acc.concat([slot]), [])
9597
.filter((e: any) => e.type.name === nodeType)
9698
.map((e: any) => {
9799
const txtChild = (e.children.default ? e.children.default() : []).find(

0 commit comments

Comments
 (0)