Skip to content

Overwriting "style" attribute [Vue 2.0] #3997

Closed
@rstoenescu

Description

@rstoenescu

Hello,

With Vue 1 "style" attribute is "merged", but with Vue 2 it is completely overwritten. Is this by design?

In the following jsfiddle, if you remove "style" attribute it will then apply "style" from within component definition. As long as "style" is present on "" (from main HTML window), it will completely overwrite component's style:
https://jsfiddle.net/rstoenescu/t0kb6vyu/2/

Thanks!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions