Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
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

Description

@torstenrudolf

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

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