-
Notifications
You must be signed in to change notification settings - Fork 384
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
When adding any token from onTokenRemoved callback method, the added token also gets removed #378
Comments
Can you give me some more details on what you're actually trying to accomplish in the UI? Are you able to reproduce the issue with the sample project? I can only imaging this happening if you are adding the same object that got removed, but I can't figure out how to reproduce this myself. |
Hi, So while doing so the callback method "onTokenRemoved" is called when removing the item. At the same time when the call arrives in "onTokenRemoved" method, I add one token from the remaining selected items using the method MyCompletionView.addObjectSync(list.get(0)). However If I add token after some delay (around 3 sec), its working fine and the callback is not going to "onTokenRemoved" for the added token. I have not reproduced it on the sample project. Thanks. |
It seems like that should work without the delay, but I might also try a different approach. I haven't updated the docs for this yet, but I don't expect these interfaces to change at this point. I would override |
Thanks again. Sorry for the late reply. I didn't exactly get what you are trying to say. But I am still working on it. I have provided some delay when adding token and its working fine. I am still looking for some workaround. Please let me know if you get any solution for this. |
I've updated the docs for version 3.0.0, which might make my suggestion more clear. |
Actually, on looking this over, I think this might be resolved by |
Hello,
When I remove any token by clicking cross image of the token, the callback method "onTokenRemoved" is called. Its working fine till here. Now in that method(onTokenRemoved) I am adding another token using method "MyCompletionView.addObjectAsync(list.get(0));"
This is the last line of that method. No more lines are there to be executed.
Whenever the token is added callbacks goes to "onTokenAdded" and after that the callback automatically again goes to "OnTokenRemoved" method, it executes from the very first line of that method for the newly added token and the newly added token is removed.
Please help. Its pretty urgent.
Thanks in advance.
The text was updated successfully, but these errors were encountered: