Skip to content

Сlass name is not added to the component when i use inheritAttrs: false #3935

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
dxvladislavvolkov opened this issue Jun 10, 2021 · 1 comment

Comments

@dxvladislavvolkov
Copy link

Version

3.1.1

Reproduction link

https://codesandbox.io/s/vigorous-swanson-31rrq

Steps to reproduce

You should open the example and you will see that a component without a class which I added on my component

What is expected?

I am expecting the classes to be applied

What is actually happening?

The component without a class name


This worked in previous versions (2.6.11 and 3.0.8):
2.6.11 -> https://codesandbox.io/s/optimistic-kirch-06cmt

It seems like a new bug after this fix #3742

@LinusBorg
Copy link
Member

I'd be suprised if this was "working" in 3.0.8, since this behaviour is an explicitly documented breaking change in 3.0.0:

https://v3.vuejs.org/guide/migration/attrs-includes-class-style.html#migration-strategy

If this "worked" in 3.0.8, that would have been a bug.

@posva posva closed this as completed Jun 10, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 18, 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

3 participants