We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccb6651 commit bf98f49Copy full SHA for bf98f49
packages/runtime-core/src/renderer.ts
@@ -2155,7 +2155,23 @@ function baseCreateRenderer(
2155
const remove: RemoveFn = vnode => {
2156
const { type, el, anchor, transition } = vnode
2157
if (type === Fragment) {
2158
- removeFragment(el!, anchor!)
+ if (
2159
+ __DEV__ &&
2160
+ vnode.patchFlag > 0 &&
2161
+ vnode.patchFlag & PatchFlags.DEV_ROOT_FRAGMENT &&
2162
+ transition &&
2163
+ !transition.persisted
2164
+ ) {
2165
+ ;(vnode.children as VNode[]).forEach(child => {
2166
+ if (child.type === Comment) {
2167
+ hostRemove(child.el!)
2168
+ } else {
2169
+ remove(child)
2170
+ }
2171
+ })
2172
2173
+ removeFragment(el!, anchor!)
2174
2175
return
2176
}
2177
0 commit comments