Skip to content

Commit

Permalink
feat: shouldSkipAttr
Browse files Browse the repository at this point in the history
  • Loading branch information
zhennann committed Jan 15, 2025
1 parent 9eb35c3 commit b8967c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cabloy/vue-runtime-core",
"version": "3.5.14",
"version": "3.5.15",
"description": "@vue/runtime-core",
"main": "index.js",
"module": "dist/runtime-core.esm-bundler.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/runtime-core/src/compat/attrsFallthrough.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,9 @@ export function shouldSkipAttr(
if (key.startsWith('routerView') || key === 'registerRouteInstance') {
return true
}
// slots/controllerRef
if (['slots', 'controllerRef'].includes(key)) {
return true
}
return false
}

0 comments on commit b8967c8

Please sign in to comment.