Open
Description
Vue version
latest 3.4.38
Link to minimal reproduction
Steps to reproduce
When click the button to change the style's color, The color of the template text is not changed
What is expected?
Hope the color of this template text can change normally
What is actually happening?
It doent work. The template color is not changed
System Info
No response
Any additional comments?
No response
Activity
jh-leong commentedon Aug 23, 2024
As a workaround, you can reassign the
style
fields like this: PlaygroundOr use a separate
style
binding: Playgrounda42195472 commentedon Aug 23, 2024
In the file of
packages/runtime-core/src/vnode.ts
, TheguardReactiveProps
function should use deep copy to handle reactive props?If use a shallow copy of
extend({}, props)
, the deep reactive obj of the props is a reference, so maybe cause this bug too @edison1105edison1105 commentedon Aug 23, 2024
@a42195472 Yes, that's true. The PR from @linzhe141 will fix this problem.