Skip to content
This repository has been archived by the owner on May 5, 2018. It is now read-only.

select2 doesn't get initialized correctly when using nested ng-repeat with optgroup #545

Closed
tadchristiansen opened this issue Apr 23, 2013 · 4 comments

Comments

@tadchristiansen
Copy link

I posted the following issue stackoverflow (contains a jsfiddle that shows the issue):

http://stackoverflow.com/questions/16123704/how-to-get-select2-tags-initializing-correctly-with-angular-ui-when-option-group

I have tried digging in to angular-ui to see if I can find what keeps it from getting initialized but the code looks correct:

if (isSelect) {
elm.select2('val', controller.$modelValue);
}

controller.$modelValue is set correctly so it seems like its some kind of refresh issue.

@ulius
Copy link

ulius commented Apr 24, 2013

I have this same issue while using ng-repeat on a plain option (not optgroup) tag.

@tadchristiansen
Copy link
Author

That should work fine, create a jsfiddle and I will take a look at it.

@ulius
Copy link

ulius commented Apr 24, 2013

After trying a bunch of stackoverflow/github suggestions, I removed angular select2 and still had the same issue. What am I doing wrong here?: http://jsfiddle.net/ulius/YDbuc/

@ProLoser
Copy link
Member

ProLoser commented Sep 9, 2013

This repo is discontinued. The project has been relocated here: https://github.com/angular-ui/ui-select2

Please reopen this issue there if it is still relevant.

@ProLoser ProLoser closed this as completed Sep 9, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants