From e0f3f08fc28bafae52cb064702a9597c18e0207c Mon Sep 17 00:00:00 2001 From: Kael Date: Mon, 13 Jan 2020 18:44:26 +1100 Subject: [PATCH] fix(VSkeletonLoader): don't call the default slot if not used fixes #10201 with v-slot --- .../src/components/VSkeletonLoader/VSkeletonLoader.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/vuetify/src/components/VSkeletonLoader/VSkeletonLoader.ts b/packages/vuetify/src/components/VSkeletonLoader/VSkeletonLoader.ts index 436845260ab..8118d90273f 100644 --- a/packages/vuetify/src/components/VSkeletonLoader/VSkeletonLoader.ts +++ b/packages/vuetify/src/components/VSkeletonLoader/VSkeletonLoader.ts @@ -61,10 +61,7 @@ export default mixins( } }, isLoading (): boolean { - return Boolean( - !getSlot(this) || - this.loading - ) + return !('default' in this.$scopedSlots) || this.loading }, rootTypes (): Record { return { @@ -143,9 +140,8 @@ export default mixins( }, genSkeleton () { const children = [] - const slot = getSlot(this) - if (!this.isLoading) children.push(slot) + if (!this.isLoading) children.push(getSlot(this)) else children.push(this.genStructure()) /* istanbul ignore else */