Skip to content

Commit adc032c

Browse files
committed
feat(addElement): Allow single child as string
1 parent 3079a83 commit adc032c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/composables/useFormKitSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function useFormKitSchema() {
77
}
88
}
99

10-
const addElement = (element: string = 'div', children: any[] = [], attrs: object = {}, render: string = 'true') => {
10+
const addElement = (element: string = 'div', children: any[] | string = [], attrs: object = {}, render: string = 'true') => {
1111
return {
1212
$el: element,
1313
if: render,

0 commit comments

Comments
 (0)