Skip to content

fix(vapor): keep cloneVNode extras off a forwarded vapor slot cloned unflattened - #16256

Merged
edison1105 merged 1 commit into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-forwarded-slot-cloned-unflattened
Nov 13, 2026
Merged

edison1105 merged 1 commit into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-forwarded-slot-cloned-unflattened

Conversation

@ValentinYoushkevich

Copy link
Copy Markdown
Contributor

#16219 made the vapor slot vnode that a compiled slot hands to a caller by hand stand for its content, so cloneVNode extras reach the content root for consumers that flatten the slot fragment (Reka UI asChild). A consumer that clones slots.default()[0] as is, like the ant-design-vue Dropdown, gets the same vnode. With a VDOM parent it is the <slot> fragment and the extras render nowhere. Since rc.15, a vapor parent's button in such a forwarded slot gets the trigger's id and class (playground); rc.14 matched VDOM.

renderSlot now returns that vnode in a fragment, as VDOM does, and the slots.x() wrappers on the client and in SSR unwrap it. Since <slot v-once/> now caches the fragment, attachSlotOutlet copies the kept path down to the slot.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cb9a8cbf-c593-4530-9734-51998369b96b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@pkg-pr-new

pkg-pr-new Bot commented Nov 13, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vue/compiler-core

pnpm add https://pkg.pr.new/@vue/compiler-core@16256
npm i https://pkg.pr.new/@vue/compiler-core@16256
yarn add https://pkg.pr.new/@vue/compiler-core@16256.tgz

@vue/compiler-dom

pnpm add https://pkg.pr.new/@vue/compiler-dom@16256
npm i https://pkg.pr.new/@vue/compiler-dom@16256
yarn add https://pkg.pr.new/@vue/compiler-dom@16256.tgz

@vue/compiler-sfc

pnpm add https://pkg.pr.new/@vue/compiler-sfc@16256
npm i https://pkg.pr.new/@vue/compiler-sfc@16256
yarn add https://pkg.pr.new/@vue/compiler-sfc@16256.tgz

@vue/compiler-ssr

pnpm add https://pkg.pr.new/@vue/compiler-ssr@16256
npm i https://pkg.pr.new/@vue/compiler-ssr@16256
yarn add https://pkg.pr.new/@vue/compiler-ssr@16256.tgz

@vue/compiler-vapor

pnpm add https://pkg.pr.new/@vue/compiler-vapor@16256
npm i https://pkg.pr.new/@vue/compiler-vapor@16256
yarn add https://pkg.pr.new/@vue/compiler-vapor@16256.tgz

@vue/reactivity

pnpm add https://pkg.pr.new/@vue/reactivity@16256
npm i https://pkg.pr.new/@vue/reactivity@16256
yarn add https://pkg.pr.new/@vue/reactivity@16256.tgz

@vue/runtime-core

pnpm add https://pkg.pr.new/@vue/runtime-core@16256
npm i https://pkg.pr.new/@vue/runtime-core@16256
yarn add https://pkg.pr.new/@vue/runtime-core@16256.tgz

@vue/runtime-dom

pnpm add https://pkg.pr.new/@vue/runtime-dom@16256
npm i https://pkg.pr.new/@vue/runtime-dom@16256
yarn add https://pkg.pr.new/@vue/runtime-dom@16256.tgz

@vue/runtime-vapor

pnpm add https://pkg.pr.new/@vue/runtime-vapor@16256
npm i https://pkg.pr.new/@vue/runtime-vapor@16256
yarn add https://pkg.pr.new/@vue/runtime-vapor@16256.tgz

@vue/server-renderer

pnpm add https://pkg.pr.new/@vue/server-renderer@16256
npm i https://pkg.pr.new/@vue/server-renderer@16256
yarn add https://pkg.pr.new/@vue/server-renderer@16256.tgz

@vue/shared

pnpm add https://pkg.pr.new/@vue/shared@16256
npm i https://pkg.pr.new/@vue/shared@16256
yarn add https://pkg.pr.new/@vue/shared@16256.tgz

vue

pnpm add https://pkg.pr.new/vue@16256
npm i https://pkg.pr.new/vue@16256
yarn add https://pkg.pr.new/vue@16256.tgz

@vue/compat

pnpm add https://pkg.pr.new/@vue/compat@16256
npm i https://pkg.pr.new/@vue/compat@16256
yarn add https://pkg.pr.new/@vue/compat@16256.tgz

commit: 5b73c4e

@github-actions

Copy link
Copy Markdown

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 87.5 kB 30.7 kB 27 kB
runtime-dom.global.prod.js 124 kB (+22 B) 46.5 kB (+13 B) 41.7 kB (+41 B)
vue.global.prod.js 185 kB (+22 B) 66.8 kB (+14 B) 59.5 kB (+83 B)

Usages

Name Size Gzip Brotli
createApp (CAPI only) 55.6 kB 21.6 kB 19.7 kB
createApp 64.9 kB 25 kB 22.7 kB
createApp + vaporInteropPlugin 121 kB (+161 B) 44.2 kB (+50 B) 39.8 kB (+117 B)
createVaporApp 35.8 kB 13.8 kB 12.6 kB
createSSRApp 69.8 kB 27 kB 24.5 kB
createVaporSSRApp 43.6 kB 16.6 kB 15.2 kB
defineCustomElement 71.4 kB 27 kB 24.5 kB
defineVaporCustomElement 50.8 kB 18.6 kB 17 kB
overall 81.8 kB 31 kB 28 kB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants