Skip to content

class attribute ignored on functional components #7554

@davidhewitt

Description

@davidhewitt

Version

2.5.13

Reproduction link

https://jsfiddle.net/zc3u69af/2/

Steps to reproduce

Create a functional component.

Render it in a parent component with some classes applied to it.

The classes won't be there.

What is expected?

I would have expected that the class attribute would be present in the DOM, like for regular stateful components.

What is actually happening?

The class attribute is lost and does not appear in the DOM.


I think this issue might be related vuejs/vue-loader#1136

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions