ui-select icon indicating copy to clipboard operation
ui-select copied to clipboard

Tagging without multiple with new tags doesn't works when using angularjs 1.3.2

Open larrybolt opened this issue 11 years ago • 12 comments

When using angularjs 1.3.2 tagging without multiple doesn't work for new items that are not added to the array. I've also tried editing demo-tagging.html, by replacing the angularjs libraries with following:

<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular-sanitize.js"></script>

And it seems to confirm something changed in the 1.3.2 to break this feature.

I'm really hoping there's an easy fix for this :disappointed: as this feature was exactly what I needed.

larrybolt avatar Apr 28 '15 20:04 larrybolt

And just trying to use angularjs 1.3.0 on the app I'm working on does run the tagging function, but doesn't seem to pass any arguments such as the new object.

$scope.tagTransform = function (newTag) {
    console.log("new tag", newTag, arguments);
    // ...
  };

larrybolt avatar Apr 28 '15 20:04 larrybolt

I've written a quick workaround you can find there. Not sure it's good enough for a pull request but may do the job for the while.

grebett avatar May 05 '15 09:05 grebett

I am facing the same issue , tagging is not happening with above mentioned code using angularjs 1.3.2

BipulKumarChoudhary avatar May 06 '15 18:05 BipulKumarChoudhary

I actually see this same problem in 1.3.1 as well. Works fine in 1.3.0.

karptonite avatar May 12 '15 20:05 karptonite

I'm facing the same problem.

guilhermerocha avatar May 25 '15 13:05 guilhermerocha

same problem here you can reproduce the problem in the official example

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

by changing the angular version in line 21 from <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.js"></script> to <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.1/angular.js"></script> now tagging of a single-select isn't working anymore i also tried <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-rc.2/angular.min.js"></script> and it's not working

ghost avatar May 26 '15 10:05 ghost

Same problem here. Any issue ? (1.3.16/angular.js)

Sitaxa avatar Jun 08 '15 00:06 Sitaxa

I'm facing the same problem. Please help

sukantary avatar Jun 11 '15 07:06 sukantary

This temporary fix worked for me: https://github.com/angular-ui/ui-select/issues/983#issuecomment-109948338

karptonite avatar Jun 11 '15 15:06 karptonite

Please make tagging work also without the workaround tagging-label="false"...

LeleDev avatar Aug 23 '15 15:08 LeleDev

:+1:

fferraris avatar Aug 23 '15 15:08 fferraris

I solved this with older version of ui-select. I am using version 0.11.0. With angular >1.3.2 it works as it's suppoused to and with angular <=1.3.2 you have to set tagging-label to "(new)" explicitly otherwise "undefined" will be shown.

davekr avatar Mar 31 '16 09:03 davekr