fix(compiler-core): fix forwarded slots detection on template slots (#4124)
fix #4123
This commit is contained in:
@@ -384,7 +384,8 @@ function hasForwardedSlots(children: TemplateChildNode[]): boolean {
|
||||
case NodeTypes.ELEMENT:
|
||||
if (
|
||||
child.tagType === ElementTypes.SLOT ||
|
||||
(child.tagType === ElementTypes.ELEMENT &&
|
||||
((child.tagType === ElementTypes.ELEMENT ||
|
||||
child.tagType === ElementTypes.TEMPLATE) &&
|
||||
hasForwardedSlots(child.children))
|
||||
) {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user