fix(compiler-core): detected forwarded slots in nested components (#4268)
fix #4244
This commit is contained in:
@@ -384,9 +384,7 @@ function hasForwardedSlots(children: TemplateChildNode[]): boolean {
|
||||
case NodeTypes.ELEMENT:
|
||||
if (
|
||||
child.tagType === ElementTypes.SLOT ||
|
||||
((child.tagType === ElementTypes.ELEMENT ||
|
||||
child.tagType === ElementTypes.TEMPLATE) &&
|
||||
hasForwardedSlots(child.children))
|
||||
hasForwardedSlots(child.children)
|
||||
) {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user