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

Problem with v-bind:class in Microsoft Edge for components #10963

Closed
yamelkaya opened this issue Dec 27, 2019 · 4 comments
Closed

Problem with v-bind:class in Microsoft Edge for components #10963

yamelkaya opened this issue Dec 27, 2019 · 4 comments

Comments

@yamelkaya
Copy link

yamelkaya commented Dec 27, 2019

Version

2.6.10

Reproduction link

https://codepen.io/yamelkaya/pen/KKwvdrY

Steps to reproduce

Open codepen example. There are 3 components test-x on the page which set text color and background. Each label tells about text color and background.

Chrome: everything works as expected

Edge 18: 1st and 3rd labels have incorrect color

What is expected?

1: red text on yellow bg
2: red on gray
3: black on yellow

What is actually happening?

1: black on gray
2: red on gray
3: black on gray

@posva
Copy link
Member

posva commented Dec 27, 2019

Seems like a browser quirk that was fixed later on:

Screen Shot 2019-12-27 at 15 11 28

As a workaround, you can use inheritAttrs: false and add v-bind="$attrs" to the h3 element

@dagadbm
Copy link

dagadbm commented Jan 23, 2020

if i wanted to help on this issue what could I do?

@jaireina
Copy link

@posva, I was going to fix this but I noticed that this is due to an issue on Codepen.io. If you open the provided pen on Edge and go to the console, you'll see an error in there. If you edit something in the pen, you won't see the changes reflected in the output panel because of that error.

I grabbed the code and put it in my local as well as on codesandbox.io and everything worked just fine on Edge.

Here are some screenshots:
codesandbox.io
image

My local server
image

Codepen.io
image

@posva
Copy link
Member

posva commented Feb 24, 2020

Thanks a lot for checking that @jaireina

@posva posva closed this as completed Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants