Skip to content

Icon component is not respecting static classes when there is dynamic classes #371

@nandin-borjigin

Description

@nandin-borjigin
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.2.3

Environment

macOS 10.14.1 (18B75), Chrome Version 71.0.3578.98 (Official Build) (64-bit), Vue 2.5.17

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Insert <a-icon/> anywhere with both static classes and dynamic classes, like:
<a-icon type="phone" class="a" :class="['b']"/>

Then the rendered result won't include class 'a'.

What is expected?

static classes should be respected

What is actually happening?

<a-icon> repects dynamic classes over static classes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions