Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Dec 8, 2024
1 parent 3a7a397 commit 9f73dbf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/runtime-vapor/src/dom/prop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,12 @@ export function setDynamicProps(

const prev = Object.create(null)
for (const key in props) {
setDynamicProp(el, key, undefined, (prev[key] = props[key]))
setDynamicProp(
el,
key,
oldProps ? oldProps[key] : undefined,
(prev[key] = props[key]),
)
}

return prev
Expand Down

0 comments on commit 9f73dbf

Please sign in to comment.