Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onTokenRemoved method called twice when calling clear method #357

Closed
maheshwariaanchal opened this issue Jul 27, 2018 · 1 comment
Closed

Comments

@maheshwariaanchal
Copy link

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

@mgod
Copy link
Contributor

mgod commented Jul 30, 2018

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants