Skip to content

Commit

Permalink
fix(runtime-core): prop assigned to undefined also need to put into a…
Browse files Browse the repository at this point in the history
…ttrs

fix(runtime-core): prop assigned to undefined also need to put into attrs

chore: format
  • Loading branch information
edison1105 committed Nov 29, 2021
1 parent 090df08 commit 5c5cd6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/componentProps.ts
Expand Up @@ -368,7 +368,7 @@ function setFullProps(
continue
}
}
if (value !== attrs[key]) {
if (!(key in attrs) || value !== attrs[key]) {
attrs[key] = value
hasAttrsChanged = true
}
Expand Down

0 comments on commit 5c5cd6e

Please sign in to comment.