8000 classList.add() is not working with similar strings · Issue #43 · remy/polyfills · GitHub
[go: up one dir, main page]

Skip to content
classList.add() is not working with similar strings #43
@jozsefs

Description

@jozsefs

If the element has e.g: 'btn-active' class you can't add 'btn' because the indexOf already returns that it found the string 'btn' as part of 'btn-active'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0