Skip to content

Commit a8f30b8

Browse files
authored
Merge pull request #276 from ValdoGhafoor/patch-1
Fix "$slots.default is not a function"
2 parents 3f3bf11 + b0da074 commit a8f30b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/FlowForm.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
descriptionLink: LinkOption
308308
}
309309
310-
const defaultSlot = this.$slots.default()
310+
const defaultSlot = this.$slots.default && this.$slots.default()
311311
let children = null
312312
313313
if (defaultSlot && defaultSlot.length) {

0 commit comments

Comments
 (0)