Skip to content

RouterLink isActive class not working when adding custom class attr. #133

@wietseva

Description

@wietseva

When a route is active, RouterLink currently does not add router-link-active class when a custom class attribute is provided.

Using JSX

<Link class="nav-item" to="route" /> 

renders

<a class="nav-item" href="/route" />

expected would be

<a class="nav-item router-link-active" href="/route" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions