Magicsuggest / magicsuggest

Multiple Selection Combo Box using Bootstrap 3
nicolasbize.com/magicsuggest/
1.3k stars 269 forks source link

All the tags are getting cleared on adding few more items to the control using "setSelection" function #324

Open jithinanchanattu opened 6 years ago

jithinanchanattu commented 6 years ago

I had 3 items in my control and I have pushed one more items to it. When the magic suggest invokes in the method "setSelection" all the items are still remaining the collection. The this.clear(); statement in the "setSelection" function cleares all the items in the json parameter("items").

Can you please have a look into this issue and resove it for me?

Before this.clear() statement image

After this.clear() statement image