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

background + backgroundColor in style binding conflict #1828

Closed
MissedWarrior opened this issue Aug 11, 2020 · 2 comments
Closed

background + backgroundColor in style binding conflict #1828

MissedWarrior opened this issue Aug 11, 2020 · 2 comments

Comments

@MissedWarrior
Copy link

MissedWarrior commented Aug 11, 2020

Version

3.0.0-rc.5

Reproduction links

https://jsfiddle.net/sy6qt3ce/

Steps to reproduce

In provided pens click on "Toggle" button several times

What is expected?

Background Color to toggle between blue and red

What is actually happening?

Background color is removed after 2 toggles

@posva
Copy link
Member

posva commented Aug 11, 2020

The vue version in codepen is really outdated. The version you provided seems to work well: https://jsfiddle.net/z5239asg/ But I found a different problem with https://jsfiddle.net/sy6qt3ce/ Removing the watcher shows a different behavior as well. I'm updating the issue to reflect the problem, which made me realize a similar problem exists in Vue 2...

@posva posva changed the title Vue 3's style merging behaviour different to Vue 2 background + backgroundColor in style binding conflict Aug 11, 2020
@posva
Copy link
Member

posva commented Aug 11, 2020

Ah, never mind, I found the original problem: vuejs/vue#7756, it's a wont fix. Using backgroundColor in the provided jsfiddle works

@posva posva closed this as completed Aug 11, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 7, 2023
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