Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

(tagging) paste not working if tagging-label="false" and tagging-tokens are set #1668

Closed
torstenrudolf opened this issue Jun 17, 2016 · 2 comments

Comments

@torstenrudolf
Copy link
Contributor

Bug description:

when using the tagging feature paste is not working if tagging-label="false" and tagging-tokens are set. see this plunker

I believe this is because the paste event calls ctrl.select(item) (see uiSelectController.js#L614) for each item after splitting the pasted string. But in uiSelectController.js#L356 in the case of ctrl.taggingLabel === false ctrl.select overrides the passed in item with the current ctrl.search which was set empty in the paste event handler earlier. Therefore the passed in item is lost and note used.

Version of Angular, UI-Select, and Bootstrap/Select2/Selectize CSS

angularjs: 1.5.0
ui-select: 0.18.0

@pixeloution
Copy link

I've just run into this issue myself -- going to have a look @ your pull request and hopefully it does the trick ;)

@dmitry-dedukhin
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants