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

fix(uiSelectMultipleDirective): Fixes checks for existing tags during multiple tag creation and selection #1473

Merged
merged 1 commit into from
Mar 4, 2016

Conversation

ravishivt
Copy link

This is the same pull request as #647 without the dist/ files.

…thout dist/ files based off the latest ui-select v0.14.9 release.
aaronroberson added a commit that referenced this pull request Mar 4, 2016
fix(uiSelectMultipleDirective): Fixes checks for existing tags during multiple tag creation and selection
@aaronroberson aaronroberson merged commit 0ddaad2 into angular-ui:master Mar 4, 2016
// verify the new tag doesn't match the value of a possible selection choice or an already selected item.
if (
stashArr.some(function (origItem) {
return angular.equals(origItem, $select.tagging.fct($select.search));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was there any hidden reason for choosing

return angular.equals(origItem, $select.tagging.fct($select.search));

in this line, and not the same as below

return angular.equals(origItem, newItem);

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

Successfully merging this pull request may close these issues.

3 participants