Skip to content

fix(runtime-vapor): ignore a ref in a v-bind object on a vdom component - #16217

Merged
edison1105 merged 1 commit into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-vbind-ref-vdom-child
Nov 11, 2026
Merged

edison1105 merged 1 commit into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-vbind-ref-vdom-child

Conversation

@ValentinYoushkevich

Copy link
Copy Markdown
Contributor

A ref inside a v-bind object reaches a VDOM child of a vapor component through createVNode (and cloneVNode for <component :is="vnode">), outside any render, so the vnode ref has no owner. The ref is never set, and unmounting the child warns Missing ref owner context in dev and throws Cannot read properties of null (reading 'refs') in production, aborting the rest of the unmount (on mount already for an async component, <component :is="vnode"> and hydration).

This is the activator pattern of UI libraries, e.g. Vuetify <v-btn v-bind="props"> in a v-menu activator slot (playground, PROD). As with vapor elements and components (#15900), the ref from v-bind is now dropped for VDOM children too; an explicit ref still goes through setRef.

@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: f103d0b0-b43f-40db-80db-fd14e79f3185

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

@vue/compiler-dom

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

@vue/compiler-sfc

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

@vue/compiler-ssr

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

@vue/compiler-vapor

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

@vue/reactivity

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

@vue/runtime-core

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

@vue/runtime-dom

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

@vue/runtime-vapor

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

@vue/server-renderer

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

@vue/shared

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

vue

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

@vue/compat

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

commit: d8cdfee

@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 46.3 kB 41.5 kB
vue.global.prod.js 184 kB 66.6 kB 59.3 kB

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 (+23 B) 43.6 kB (+16 B) 39.3 kB (+27 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 6390f6c into vuejs:minor Nov 11, 2026
14 of 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