style is not cleared
Vue version
3.4.19
Link to minimal reproduction
Steps to reproduce
just see reproduction
What is expected?
the color: red
style should be cleared
What is actually happening?
the color: red
is still alive
System Info
No response
Any additional comments?
No response
i tried to fix it with this pr~
This will only happen when style's value changed, from string to object or from object to string. And it will work correctly when its value type doesn't change. In typescript, operation to change type is not allowed. So it will only happened in javascript.