Skip to content

fix(runtime-vapor): run vdom directives of a vapor slot vnode on its content root - #16261

Merged
edison1105 merged 1 commit into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-slot-vnode-directives
Nov 16, 2026
Merged

edison1105 merged 1 commit into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-slot-vnode-directives

Conversation

@ValentinYoushkevich

Copy link
Copy Markdown
Contributor

element-plus ElOnlyChild renders its first slot child as withDirectives(cloneVNode(child, attrs), [[forwardRef]]) (source), and the popper trigger attaches its listeners to the element that directive hands over. When the trigger comes from a vapor parent, that child is the vnode of a vapor slot, whose mount never runs the directives. So el-tooltip, el-popover and el-dropdown in a vapor component never open (playground).

The interop now runs the directives of a vapor slot vnode on the root element of its content and follows that root as it changes, as VDOM does for the element it clones.

@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: f4be254a-cc1e-4be2-92aa-a5da232b38d0

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

@vue/compiler-dom

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

@vue/compiler-sfc

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

@vue/compiler-ssr

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

@vue/compiler-vapor

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

@vue/reactivity

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

@vue/runtime-core

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

@vue/runtime-dom

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

@vue/runtime-vapor

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

@vue/server-renderer

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

@vue/shared

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

vue

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

@vue/compat

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

commit: 5ac77a6

@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 46.5 kB 41.7 kB
vue.global.prod.js 185 kB 66.8 kB 59.5 kB

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 122 kB (+965 B) 44.5 kB (+318 B) 40 kB (+312 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 the scope: vapor related to vapor mode label Nov 16, 2026
@edison1105
edison1105 merged commit 05e337a into vuejs:minor Nov 16, 2026
16 of 17 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