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

Unable to create tag with default tokens (,|ENTER) when tagging-label="false" #770

Open
sime opened this issue Mar 17, 2015 · 5 comments
Open

Comments

@sime
Copy link
Contributor

sime commented Mar 17, 2015

Since 0.11.2

If taggging-label="false" is used, the default tokens ',' and 'ENTER' do not create a tag.

Attempt to create a tag by pressing ',' or 'ENTER' on the following Plunkr.

http://plnkr.co/edit/RK7a6NgAAFGTEm48UjGn?p=preview

@dmitryevseev
Copy link

+1

@dmitryevseev
Copy link

As a workaround I've made results dropdown hidden:
.select2-drop { display: none; }

(in my case user does not need to select existing tags) and set tagging-tokens attribute:
<ui-select multiple tagging ng-model="keywords" tagging-tokens="ENTER|TAB|,">

It allows to have tokens working without ability to select existing values.

brianfeister pushed a commit that referenced this issue May 28, 2015
@cesar-oyarzun-m
Copy link

cesar-oyarzun-m commented Jul 26, 2016

hey @dmitryevseev I try your solution but I get console error

TypeError: Cannot assign to read only property '_uiSelectChoiceDisabled' of label undefined

How can I fix this?

@dmitryevseev
Copy link

@cesar-oyarzun-m This solution worked on 0.11.2. You're probably using a newer version

@cesar-oyarzun-m
Copy link

yeah I'm usigin 0.17.1 but I have the same problem

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

No branches or pull requests

4 participants