Skip to content

fix(runtime-core): fall through attrs to vapor slot content rendered as a component root - #16265

Merged
edison1105 merged 1 commit into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-slot-content-root-attrs
Nov 17, 2026
Merged

edison1105 merged 1 commit into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-slot-content-root-attrs

Conversation

@ValentinYoushkevich

@ValentinYoushkevich ValentinYoushkevich commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

A VDOM component that renders the first vnode of its default slot as its own root, like the TDesign popup trigger, loses its fallthrough attrs when that slot comes from a vapor parent. VDOM puts the class, attributes and listeners on the slot's element; vapor drops them with an "Extraneous non-props attributes" warning. So the class of a <t-popup> or <t-tooltip>, or attrs on Reka UI's Presence, never reach the element in a vapor component (playground).

renderComponentRoot now clones that root with the attrs too, as it does an element root, and the interop applies them to the content root, as it already does for cloneVNode extras.

SSR is not covered: the server renderer does not put these attrs on vapor slot content yet, so a hydrated page still gets a class mismatch there. That needs its own fix.

@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: 5d92c555-d6bb-4d1d-a769-d4698f2004c4

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@16265
npm i https://pkg.pr.new/@vue/compiler-core@16265
yarn add https://pkg.pr.new/@vue/compiler-core@16265.tgz

@vue/compiler-dom

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

@vue/compiler-sfc

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

@vue/compiler-ssr

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

@vue/compiler-vapor

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

@vue/reactivity

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

@vue/runtime-core

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

@vue/runtime-dom

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

@vue/runtime-vapor

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

@vue/server-renderer

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

@vue/shared

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

vue

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

@vue/compat

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

commit: 406f682

@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 (+32 B) 46.6 kB (+19 B) 41.6 kB (-26 B)
vue.global.prod.js 185 kB (+32 B) 66.8 kB (+16 B) 59.5 kB (-3 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 (+32 B) 44.2 kB (+18 B) 39.8 kB (+45 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

@edison1105 edison1105 added scope: vapor related to vapor mode interop vdom / vapor interop labels Nov 17, 2026
@edison1105
edison1105 merged commit 3f19e42 into vuejs:minor Nov 17, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

interop vdom / vapor interop scope: vapor related to vapor mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants