Skip to content

Commit 3cc3dde

Browse files
committed
chore: update
1 parent a866b28 commit 3cc3dde

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/runtime-core/src/componentRenderUtils.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function renderComponentRoot(
5151
vnode,
5252
proxy,
5353
withProxy,
54-
propsOptions: [propsOptions],
54+
propsOptions: [propsOption],
5555
slots,
5656
attrs,
5757
emit,
@@ -158,15 +158,12 @@ export function renderComponentRoot(
158158
const keys = Object.keys(fallthroughAttrs)
159159
if (keys.length) {
160160
if (isElementRoot(root)) {
161-
if (propsOptions && keys.some(isModelListener)) {
161+
if (propsOption && keys.some(isModelListener)) {
162162
// If a v-model listener (onUpdate:xxx) has a corresponding declared
163163
// prop, it indicates this component expects to handle v-model and
164164
// it should not fallthrough.
165165
// related: #1543, #1643, #1989
166-
fallthroughAttrs = filterModelListeners(
167-
fallthroughAttrs,
168-
propsOptions,
169-
)
166+
fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOption)
170167
}
171168
root = cloneVNode(root, fallthroughAttrs, false, true)
172169
} else if (__DEV__ && !accessedAttrs && root.type !== Comment) {

0 commit comments

Comments
 (0)