Skip to content

DOM class attribute not rendered properly with functional components #1014

Open
@Bartheleway

Description

@Bartheleway

Version

13.3.0

Reproduction link

https://codesandbox.io/s/0vmk6026jl

Steps to reproduce

Create a functional component using the single file way (<template functional><div class="test"></div></template>).
Use that functional component in another component and add the class attribute (<my-cmp class="test2"></my-cmp>)

What is expected?

It should merge the two classes on the root element and provide scope css support

I should get <div class="test test2"></div>

What is actually happening?

The css classes are not merged. It only applies those from the functional component.

I get <div class="test"></div>


This is working if I write my component with only JS.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions