core icon indicating copy to clipboard operation
core copied to clipboard

fix(transition): get root el of DEV_FRAGMENT_ROOT

Open jonaskuske opened this issue 3 years ago • 1 comments

fix #6745


___

an alternative to re-assigning el would be something like

prevChildren = prevChildren.map((child) => {
  if (DEV_ROOT_FRAGMENT) {
    const clone = cloneVNode(child)
    clone.el = elementRoot.el
    return clone
  }
  return child
})

but I don't think the cloning is actually necessary here. Not sure though.

jonaskuske avatar Sep 26 '22 22:09 jonaskuske

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 90.5 kB (+27 B) 34.4 kB (+33 B) 31 kB (+42 B)
vue.global.prod.js 148 kB (+27 B) 53.7 kB (+22 B) 47.9 kB (+12 B)

Usages

Name Size Gzip Brotli
createApp 50.7 kB 19.8 kB 18.1 kB
createSSRApp 54.1 kB 21.1 kB 19.3 kB
defineCustomElement 53 kB 20.6 kB 18.7 kB
overall 64.4 kB 24.8 kB 22.5 kB

github-actions[bot] avatar Mar 01 '24 13:03 github-actions[bot]

I think this may have been fixed in 3.4.22 by #9421.

skirtles-code avatar Apr 17 '24 21:04 skirtles-code