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

selectize theme doesn't work in ng-repeat

Open vitalii opened this issue 8 years ago • 4 comments

Bug description:

When you have ui-select with theme selectize inside ng-repeat, all changes to the model applies only to the last item in ng-repeat. It's working ok for bootstrap theme. And you can see in plunker below. there are two values as in model for each select for bootstrap. And a lot of values for the last one select, from previous items in ng-repeat loop. I guess problem selectize render selected option to the last one select in the loop. Any ideas?

screenshot 2

Link to minimally-working plunker that reproduces the issue:

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

Version of Angular, UI-Select, and Bootstrap/Select2/Selectize CSS

Angular: 1.5.8

UI-Select: 0.19.6

Bootstrap/Select2/Selectize CSS (if applicable): 0.8.5

vitalii avatar Feb 16 '17 17:02 vitalii

I have the same issue

kurpav avatar Mar 08 '17 19:03 kurpav

@pkurochka maybe you could investigate and make a PR? Happy to review 😄

Jefiozie avatar Mar 09 '17 18:03 Jefiozie

@Jefiozie Was this issue ever resolved?

stcrestrada avatar Sep 27 '18 00:09 stcrestrada

@stcrestrada My workaround: Add a wrapper tag (e.g. div) for the selectize/match-multiple.tpl.html view (at the end of select.js)

Later, of course, you have to change some styles for this theme.

domator avatar Nov 05 '18 22:11 domator