diff --git a/src/core/instance/render-helpers/render-slot.js b/src/core/instance/render-helpers/render-slot.js index b89f44f7..c0a86608 100644 --- a/src/core/instance/render-helpers/render-slot.js +++ b/src/core/instance/render-helpers/render-slot.js @@ -24,13 +24,11 @@ export function renderSlot ( } nodes = scopedSlotFn(props) || - (fallbackRender && - (Array.isArray(fallbackRender) ? fallbackRender : fallbackRender())) + (typeof fallbackRender === 'function' ? fallbackRender() : fallbackRender) } else { nodes = this.$slots[name] || - (fallbackRender && - (Array.isArray(fallbackRender) ? fallbackRender : fallbackRender())) + (typeof fallbackRender === 'function' ? fallbackRender() : fallbackRender) } const target = props && props.slot