Skip to content

onTokenRemoved method called twice when calling clear method #357

Description

@maheshwariaanchal

Whenever I call clear method on ContactsCompletionView (ContactsCompletionView.clear()), onTokenRemoved is called twice for removing single token. So if I have selected 6 tokens and I call clear method on ContactsCompletionView, onTokenRemoved is called 12 times. (Twice for a single token).
Please help

Activity

  1. mgod commented on Jul 30, 2018

    @mgod
    Contributor

    It looks like this is a limitation of the current library. I'm working on an update that should change the underlying implementation enough to fix this issue, but I'm not sure when it will be available. In general, we recommend using removeObject on the objects you want to remove rather than clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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