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

ui-select breaks with angular js v1.3.0 #85

Closed
anoopsinghbayes opened this issue Jun 14, 2014 · 26 comments · Fixed by #91
Closed

ui-select breaks with angular js v1.3.0 #85

anoopsinghbayes opened this issue Jun 14, 2014 · 26 comments · Fixed by #91

Comments

@anoopsinghbayes
Copy link

select2

select breaks with angular js version 1.3

the above snapshot is for the basic example as in the demo plunkr

@anoopsinghbayes anoopsinghbayes changed the title bearking with angular js v1.3.0 ui-select breaks with angular js v1.3.0 Jun 14, 2014
@Florian95
Copy link

+1

@filipedeschamps
Copy link

+1 also broke our app out of nowhere

On Tuesday, June 17, 2014, Florian LAMACHE notifications@github.com wrote:

+1


Reply to this email directly or view it on GitHub
#85 (comment).

@craigkj
Copy link

craigkj commented Jun 17, 2014

Seeing the same behaviour with 1.2.18 also.

Works fine up to and including 1.2.17. I suspect its the changes to transclusion (also mentioned here: #80 )

@Gizmodo
Copy link

Gizmodo commented Jun 18, 2014

+1

@Alsmile
Copy link

Alsmile commented Jun 19, 2014

"Seeing the same behaviour with 1.2.18 also.

Works fine up to and including 1.2.17. I suspect its the changes to transclusion (also mentioned here: #80 )"

+1

Works fine with 1.2.18 in examples , but not work in my project. It is good with 1.2.17 .

@tellezhector
Copy link

Have you figured out what is the problem?

It seems to happen inside the repeat.
Does it have to do with any of these?
angular/angular.js#3586
angular/angular.js#3598

It could have something to do about the ng-bind-html and ngSanitazer.

@neekers
Copy link

neekers commented Jun 20, 2014

+1

1 similar comment
@ReedD
Copy link

ReedD commented Jun 22, 2014

👍

@mfzl
Copy link

mfzl commented Jun 24, 2014

This issue has also hit us, it took quite a while to figure out what was happening.

I'm still debugging, haven't found the cause for this. Appears to be that repeat variable is not resolved inside the choices.
So it must be a problem with transclusion, repeat or both.

Here's a plunkr showing the issue http://plnkr.co/edit/Gg7CZpHyVFl7IJxEnk37?p=preview

You can see that scope function gets called but the item is undefined. Check the log.

@hyzhak
Copy link
Contributor

hyzhak commented Jun 24, 2014

👍 I think it is the critical bug. Is there any ideas how to fix it?

@bilalq
Copy link

bilalq commented Jun 24, 2014

+1 this is a pretty big issue.

@Gizmodo
Copy link

Gizmodo commented Jun 24, 2014

@Narretz
Copy link
Contributor

Narretz commented Jun 25, 2014

Angular fixed some long-standings bugs with nested transclusion where transcluded parts did not retain the parent scope, but became part of the isolate scope instead. It hits ng-repeat, ng-if etc. as they all use transclusion.

@dimirc
Copy link
Contributor

dimirc commented Jun 27, 2014

Maybe we shouldn't use ngtransclude anymore but some other way to include or inject the template for the repeat

Related to
angular/angular.js#1809 (comment)
angular/angular.js#7874 (comment)
angular/angular.js#7842 (comment)

@Darmikon
Copy link

+1

@dimirc
Copy link
Contributor

dimirc commented Jul 3, 2014

Resolved with #91

@dimirc dimirc closed this as completed Jul 3, 2014
@btm1
Copy link

btm1 commented Jan 27, 2015

This is still happening for me and doesn't appear to be fixed in the latest release. I'm not sure why this is closed. I'm using .9.6 and angular 1.3.11.

screen shot 2015-01-27 at 3 09 54 pm
screen shot 2015-01-27 at 3 09 23 pm

@stristr
Copy link

stristr commented Jan 30, 2015

Agreed, not fixed.

@emretoprak
Copy link

Still have problem i'am looking for alternatives....

@yatagan
Copy link

yatagan commented Feb 10, 2015

I recommend http://brianreavis.github.io/selectize.js/

@btm1
Copy link

btm1 commented Feb 12, 2015

now i'm having all sorts of issues with this library and 1.3.11. Tagging no longer works :(

@MartinMuzatko
Copy link

We use ui-select via ajax load. UI Select works only every second ajax call.
Same issue:

 Error: [ui.select:transcluded] http://errors.angularjs.org/1.3.8/ui.select/transcluded?p0=Expected%201%20.ui-select-choices%20but%20got%20'%7B0%7D'.&p1=0
    at js/angular-ui-select.js:108:24
    at js/angular-ui-select.js:1252:39
    at js/angular.min.js:51:108
    at js/angular.min.js:52:497
    at l (js/angular.min.js:56:476)
    at link (js/angular-ui-select.js:1232:25)
    at $ (js/angular.min.js:70:426)
    at v (js/angular.min.js:59:401)
    at js/angular.min.js:66:472
    at js/angular.min.js:112:276 <div class="{{field.name}} ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control ng-pristine ng-untouched ng-valid ng-scope" ng-class="{open: $select.open}" ng-model="field.permissions" theme="bootstrap">

@yogeshnath
Copy link

If I change to below version, it does work:
http://ajax.googleapis.com/ajax/libs/angularjs/1.2.18/angular.js
try it.

@panbanda
Copy link

Hey guys, ran into the same thing in Angular 3.1.15 but I updated angular to 3.1.17 and it is working again.

@MicrowaveDev
Copy link

I was try 1.3.17 and it does not work for me

@harksha
Copy link

harksha commented Feb 27, 2018

1.2.3 error: with select2 theme http://plnkr.co/edit/c5GLHaitABkw2FHUwVcX?p=preview
I realise this angular version may not be supported anymore, but then, could you upgrade the documentation?

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 a pull request may close this issue.