Skip to content

0.2.1 defaultProps migration introduces breaking change #562

@mmaloon

Description

@mmaloon

Describe the bug
Release 0.2.1 introduces bug where explicitly passing undefined as a className causes an error

Reproducible test case
Codepen Demo

Expected behavior
This has potential to break existing code. Maybe revert and save for a major release?

This code works for version 0.2.0 but not on 0.2.1
<FontAwesomeIcon className={undefined} icon={faUser} />

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