-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Open
Labels
contribution welcomefeature requestwarningsrelated to development warningsrelated to development warnings
Description
Version
2.6.10
Reproduction link
https://codepen.io/lee88688/pen/jjPpBm?editors=1010
Steps to reproduce
as seen in codepen, "hello" component have only one slot. but rendered 2 div tag at last. I have a look at Vue's code renderSlot which seems renderSlot function would treat the normal slot as scoped slot. why it would be like this?
the following code is render function of hello component which is compiled by Vue.compile. _t is renderSlot function. when normal slot and scoped slot in same component the problem above will be present.
(function anonymous() {
with (this) {
return _c('div', [_t("default"), _v(" "), _t("default", null, {
"x": x
})], 2)
}
}
)
What is expected?
render just one slot.
What is actually happening?
render one slot twice.
Metadata
Metadata
Assignees
Labels
contribution welcomefeature requestwarningsrelated to development warningsrelated to development warnings