Skip to content

Commit

Permalink
Update componentProps.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 authored Apr 12, 2022
1 parent 04aa312 commit 2b896fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/runtime-core/src/componentProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,7 @@ export function updateProps(
const propsToUpdate = instance.vnode.dynamicProps!
for (let i = 0; i < propsToUpdate.length; i++) {
let key = propsToUpdate[i]
// if the prop key is a declared emit event listener.
// use continue to skip this prop
// skip if the prop key is a declared emit event listener
if (isEmitListener(instance.emitsOptions, key)){
continue
}
Expand Down

0 comments on commit 2b896fe

Please sign in to comment.