Skip to content

Commit 91d97b0

Browse files
author
jarruda
committed
fix(composables): Use correct properties to check for types
1 parent f9841f5 commit 91d97b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ 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)' ?
95+
.reduce((acc: Array<any>, slot: any) => slot.type.toString() === 'Symbol(Fragment)' ?
9696
acc.concat(slot.children) : acc.concat([slot]), [])
97-
.filter((e: any) => e.type.name === nodeType)
97+
.filter((e: any) => (e.type.__name || e.type.name) === nodeType)
9898
.map((e: any) => {
9999
const txtChild = (e.children.default ? e.children.default() : []).find(
100100
(e: any) => e.type.toString() === 'Symbol(Text)'

0 commit comments

Comments
 (0)