Skip to content

Issue Report: Duplicate Tags Re-Populate on Final Deletion #64

@kishanm47

Description

@kishanm47

When initializing the tag input with a state that includes duplicate values, removing the last instance of a duplicated tag causes the entire list of initial tags to be repopulated unexpectedly.

e.x
const [selected, setSelected] = useState(["papaya", "mango", "papaya"]);

it will display three tags "papaya", "mango", "papaya"
now when i try to remove papaya -> it works correctly now present "papaya", "mango",
now i remove mango -> it works correctly now present "papaya",
now when i try to remove the papaya -> here it will load all the tags back ("papaya", "mango", "papaya" )

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