Skip to content

fix(vapor): fall through cloneVNode extras to the content of a forwarded vapor slot - #16219

Merged
edison1105 merged 1 commit into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-forwarded-slot-extras
Nov 11, 2026
Merged

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

Conversation

@ValentinYoushkevich

Copy link
Copy Markdown
Contributor

A VDOM component that forwards its slot into an as-child primitive (<DropdownMenuTrigger as-child><slot name="trigger" /></DropdownMenuTrigger>, as in n8n and most Reka UI wrappers) loses everything the primitive adds when the slot comes from a vapor parent: id, aria-*, data-state and the onClick that opens the menu (playground with Reka UI).

#15989 falls through cloneVNode extras to the content of slots.x(), but a forwarded <slot /> gives the library the slot outlet, whose extras go to the slot props. A vapor slot rendered inside a compiled slot that is called by hand (block tracking off, as withCtx does) is now taken as content too. The slot props stay off the content's props, so a clone no longer merges them in as attributes (<slot :open> rendered open="true"), also for slots.x() content.

@coderabbitai

coderabbitai Bot commented Nov 10, 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: a1ccf609-0232-4ab5-af14-a2db0eed2e54

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 10, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vue/compiler-core

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

@vue/compiler-dom

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

@vue/compiler-sfc

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

@vue/compiler-ssr

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

@vue/compiler-vapor

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

@vue/reactivity

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

@vue/runtime-core

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

@vue/runtime-dom

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

@vue/runtime-vapor

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

@vue/server-renderer

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

@vue/shared

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

vue

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

@vue/compat

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

commit: 04b731f

@github-actions

Copy link
Copy Markdown

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 87.4 kB 30.7 kB 27 kB
runtime-dom.global.prod.js 124 kB (+92 B) 46.4 kB (+36 B) 41.5 kB (-23 B)
vue.global.prod.js 184 kB (+92 B) 66.6 kB (+35 B) 59.3 kB (+51 B)

Usages

Name Size Gzip Brotli
createApp (CAPI only) 55.2 kB 21.5 kB 19.6 kB
createApp 64.5 kB 24.8 kB 22.6 kB
createApp + vaporInteropPlugin 119 kB (+134 B) 43.6 kB (+48 B) 39.3 kB (-38 B)
createVaporApp 34.8 kB 13.4 kB 12.3 kB
createSSRApp 69.4 kB 26.8 kB 24.4 kB
createVaporSSRApp 42.6 kB 16.2 kB 14.9 kB
defineCustomElement 71 kB 26.8 kB 24.4 kB
defineVaporCustomElement 49.9 kB 18.2 kB 16.7 kB
overall 81.4 kB 30.8 kB 27.8 kB

@edison1105 edison1105 added the scope: vapor related to vapor mode label Nov 11, 2026
@edison1105
edison1105 merged commit 1e9fc5f into vuejs:minor Nov 11, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: vapor related to vapor mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants