Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
noootwo committed Nov 18, 2024
1 parent a866b28 commit 3cc3dde
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/runtime-core/src/componentRenderUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function renderComponentRoot(
vnode,
proxy,
withProxy,
propsOptions: [propsOptions],
propsOptions: [propsOption],
slots,
attrs,
emit,
Expand Down Expand Up @@ -158,15 +158,12 @@ export function renderComponentRoot(
const keys = Object.keys(fallthroughAttrs)
if (keys.length) {
if (isElementRoot(root)) {
if (propsOptions && keys.some(isModelListener)) {
if (propsOption && keys.some(isModelListener)) {
// If a v-model listener (onUpdate:xxx) has a corresponding declared
// prop, it indicates this component expects to handle v-model and
// it should not fallthrough.
// related: #1543, #1643, #1989
fallthroughAttrs = filterModelListeners(
fallthroughAttrs,
propsOptions,
)
fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOption)
}
root = cloneVNode(root, fallthroughAttrs, false, true)
} else if (__DEV__ && !accessedAttrs && root.type !== Comment) {
Expand Down

0 comments on commit 3cc3dde

Please sign in to comment.