Skip to content
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

bound style attribute is not reflected #4138

Closed
syuilo opened this issue Jul 17, 2021 · 1 comment
Closed

bound style attribute is not reflected #4138

syuilo opened this issue Jul 17, 2021 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@syuilo
Copy link
Contributor

syuilo commented Jul 17, 2021

Version

3.2.0-beta.1

Reproduction link

sfc.vuejs.org

Steps to reproduce

This is a problem that has occurred since 3.2.0-beta.1.

Bound style attribute is not reflected.
And interestingly, if you add an empty style attribute, the bound style will be reflected.
e.g.

<h1 :style="`color: ${x};`" style="">Hello World!</h1>

See minimal reproduction.

What is expected?

bound style attribute will be reflected

What is actually happening?

bound style attribute is not reflected

@syuilo
Copy link
Contributor Author

syuilo commented Jul 17, 2021

Probably the reason for this is that the handling of the case where the style is a string is missing here.

Or maybe don't even need to generate the code to call normalizeStyle at the compilation stage.

@LinusBorg LinusBorg added the 🐞 bug Something isn't working label Jul 17, 2021
yyx990803 added a commit that referenced this issue Jul 19, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants