File tree 2 files changed +7
-7
lines changed
packages/runtime-core/src
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -256,11 +256,7 @@ function setFullProps(
256
256
let camelKey
257
257
if ( options && hasOwn ( options , ( camelKey = camelize ( key ) ) ) ) {
258
258
props [ camelKey ] = value
259
- } else if (
260
- ( ! emits || ! isEmitListener ( emits , key ) ) &&
261
- // ignore v-model listeners
262
- ! key . startsWith ( `onUpdate:` )
263
- ) {
259
+ } else if ( ! emits || ! isEmitListener ( emits , key ) ) {
264
260
// Any non-declared (either as a prop or an emitted event) props are put
265
261
// into a separate `attrs` object for spreading. Make sure to preserve
266
262
// original key casing
Original file line number Diff line number Diff line change @@ -121,8 +121,12 @@ export function renderComponentRoot(
121
121
for ( let i = 0 , l = allAttrs . length ; i < l ; i ++ ) {
122
122
const key = allAttrs [ i ]
123
123
if ( isOn ( key ) ) {
124
- // remove `on`, lowercase first letter to reflect event casing accurately
125
- eventAttrs . push ( key [ 2 ] . toLowerCase ( ) + key . slice ( 3 ) )
124
+ // ignore v-model handlers when they fail to fallthrough
125
+ if ( ! key . startsWith ( 'onUpdate:' ) ) {
126
+ // remove `on`, lowercase first letter to reflect event casing
127
+ // accurately
128
+ eventAttrs . push ( key [ 2 ] . toLowerCase ( ) + key . slice ( 3 ) )
129
+ }
126
130
} else {
127
131
extraAttrs . push ( key )
128
132
}
You can’t perform that action at this time.
0 commit comments