Skip to content

UiSrefActive not splitting classes as it should #198

Closed
@floreks

Description

@floreks

I have tried to use uiSrefActive with multiple classes and it does not work. It appears that there is an issue with these lines:

@Input('uiSrefActive') set active(val: string) { this._classes = val.split('\s+')};

@Input('uiSrefActiveEq') set activeEq(val: string) { this._classesEq = val.split('\s+')};

Check this snippet that reproduces the issue and shows how it should be implemented.
https://jsbin.com/nokijafepo/1/edit?js,console

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