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

Add taggingLabel for single and multiple select #972

Closed

Conversation

viniciusdacal
Copy link

issue #938

@LeleDev
Copy link

LeleDev commented May 29, 2015

Please merge this one soon...

@LeleDev LeleDev mentioned this pull request May 30, 2015
@brianfeister
Copy link

Sorry but there are so many issues to backtrack that I can't find the original, can you post a Plunkr demonstrating the bug so I can verify this fixes it? Maybe there already is a demo of the problem but I can't find it and would like to have it documented here for future reference. Thanks @viniciusdacal

@viniciusdacal
Copy link
Author

In this first Plunkr you can see the error.
http://plnkr.co/edit/7tPA05od2FUCbZRqj8UY?p=preview
Just try to add a new item in the single select, It should show a label, but nothing happens.
In the multiple select, try to type "Adam" and you will get the follow error:
Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: person in $select.items track by person.name, Duplicate key: Adam

On this follow Plunkr, I just add my current version of select.js with the fixes.
http://plnkr.co/edit/bG7yvD8YotzwexvSHti0?p=preview

Thanks @brianfeister

@ghost
Copy link

ghost commented Jun 15, 2015

@brianfeister, as this pull request fixes a critical function (taging on single select), can you allocate the time for merging it to master ?

@manichandra
Copy link

+1

@kshutkin
Copy link
Contributor

kshutkin commented Jul 3, 2015

#1006

@viniciusdacal
Copy link
Author

@brianfeister any news about it?

@yaojingguo
Copy link

+1

3 similar comments
@MartinNuc
Copy link

+1

@eranimo
Copy link

eranimo commented Aug 6, 2015

+1

@rodrigogoncalves
Copy link

+1

@eric-norcross
Copy link

+1

2 similar comments
@Nekmo
Copy link

Nekmo commented Oct 14, 2015

+1

@valloq
Copy link

valloq commented Oct 26, 2015

+1

@cojack
Copy link

cojack commented Oct 29, 2015

Anything new?

@bwilson-ux
Copy link

+1

5 similar comments
@fferraris
Copy link

+1

@mg-agilion
Copy link

+1

@capic
Copy link

capic commented Nov 3, 2015

👍

@bryanstetson
Copy link

+1

@isery
Copy link

isery commented Nov 9, 2015

+1

@rodrigogoncalves
Copy link

Is there anything I could do to help having this PR merged?

@neoned
Copy link

neoned commented Nov 16, 2015

any news about it?

@jkevingutierrez
Copy link

Any news ?

@MartinNuc
Copy link

We forked viniciusdacal's version and use it for like 6 months already.

@karlr42
Copy link

karlr42 commented Feb 23, 2016

As was mentioned here for me the easiest workaround was just to use a regular multiple with tagging and set limit="1".

@wesleycho
Copy link
Contributor

This needs rebasing.

Linking issue this fixes - #972.

@viniciusdacal
Copy link
Author

thanks @wesleycho.
I will work on this.

@viniciusdacal viniciusdacal force-pushed the add-tagging-label-for-all branch 2 times, most recently from 906dfda to a85b1d6 Compare April 2, 2016 22:40
@viniciusdacal viniciusdacal force-pushed the add-tagging-label-for-all branch from a85b1d6 to 2e1f5bf Compare April 2, 2016 22:50
@viniciusdacal
Copy link
Author

@wesleycho updated.

@viniciusdacal
Copy link
Author

any news about the revision?

@user378230
Copy link
Contributor

There are still conflicts apparently, can you rebase again?
Does the copy and paste include all changes that have gone into the uiSelectMultipleDirective keyup handler since you last did it?
Are there no associated tests?

@viniciusdacal
Copy link
Author

@user378230 when I rebase my branch last time, I got the current code and added the changes again. so, this code has all changes from the day I rebased.

@jpkleemans
Copy link

+1

@user378230
Copy link
Contributor

@user378230 when I rebase my branch last time, I got the current code and added the changes again. so, this code has all changes from the day I rebased.

Thats fine, just still need to make sure no changes are dropped prior to commit of copy-paste.

This still needs test(s), rebasing, example updating & squashing though. Once that is done, I'll merge.

Thanks for your patience and hard work! 👍

@Teegrounet
Copy link
Contributor

Teegrounet commented Apr 16, 2016

I think you should add : ctrl.taggingLabel = '(new)'; in controller
Without this, if taggingLabel attribute doesn't exist ctrl.taggingLabel is not initialized and newItem = ctrl.search+' '+ctrl.taggingLabel; -> ctrl.search+' '+ undefined

There is a difference between single and multiple mode : in single a compare function with case insensitive is used and in multiple mode angular.equals (sensitive function) is used

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

Successfully merging this pull request may close these issues.