Skip to content

Loosing reactivity when using "style" props name in component #13151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jenjen75 opened this issue Apr 2, 2025 · 1 comment
Closed

Loosing reactivity when using "style" props name in component #13151

jenjen75 opened this issue Apr 2, 2025 · 1 comment

Comments

@jenjen75
Copy link

jenjen75 commented Apr 2, 2025

Vue version

3.5.13

Link to minimal reproduction

https://play.vuejs.org/#eNqVU8Fu2zAM/RVCOyQFujjIdsrcAtvQw3bYinVHXVyH8dTYkiDJbgbD/z5KtmM7c4oWvkh8j+Qj9Vyzz1qvqhLZlsU2NUI7sOhKfculKLQyDmowuIcG9kYVsCDq4gR9VYXu4qvIX3ylxadJapI6UeEknwjtlypp3Ynz4P7mCDe+3bKGxyQ9ZEaVcrcFzt6t12vOoLniMo5anaSQLg4LnScO6QYQ70QVDt1RSKDx4mgUFlKXDqr3hdphfsPZpPlqaErNoi4nVbkykGgN9TDQOR+apusQlrK1Hj+vT0VbYDODtO16sXE0moxdM2dpWXuRrZ6skvRYtSdzllIzkaP5qZ2gZXK2hYB4LMlz9fw9xJwp8bqPp38wPczEn+zRxzi7N2jRVCTqhLnEZOha+O7hBx7pfAJpl6Uf4QXwF1qVl15jS/tCKyPZI15Q+y34Rsjst707OpS2H8oL9cwm8DkjG/k9Xxp9kPth9THkcdnQFnuPnrsd8kRm9CaOygRftc7URmlLjtzhXki897e4hvCC1GxiUesMySZ9Lby5hENzu5yaeNbCIxO3x8HRfgYlUZL08MM8CnLfUioHz8ocqMnV2PAzlg9p81bvzU5GP2cNBu+qv1niW+RtXqdvTPtP4KWfqfkH9LmqSg==

Steps to reproduce

  1. Create a component with props with "style" attribute name
  2. Mutate a nested attribute into "style" props

What is expected?

the nested value mutate
isProxy(props.style) should be true

What is actually happening?

the nested value doesnt mutate
isProxy(props.style) is false

System Info

Any additional comments?

No response

@edison1105
Copy link
Member

Image
style is a special attribute and cannot be used as props.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants