Skip to content

Commit

Permalink
fix(runtime-core): fix event listener as dynamicProp is added erroneo…
Browse files Browse the repository at this point in the history
…usly to props (#5517)

fix #5520
  • Loading branch information
iwusong committed Apr 12, 2022
1 parent b2b6b6f commit 8eceabd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/runtime-core/src/componentProps.ts
Expand Up @@ -225,6 +225,10 @@ export function updateProps(
const propsToUpdate = instance.vnode.dynamicProps!
for (let i = 0; i < propsToUpdate.length; i++) {
let key = propsToUpdate[i]
// skip if the prop key is a declared emit event listener
if (isEmitListener(instance.emitsOptions, key)){
continue
}
// PROPS flag guarantees rawProps to be non-null
const value = rawProps![key]
if (options) {
Expand Down

0 comments on commit 8eceabd

Please sign in to comment.