amitava82 / angular-multiselect

[NOT MAINTAINED]Native AngularJS multiselect directive
http://amitava82.github.io/angular-multiselect
MIT License
140 stars 124 forks source link

Disabled state #82

Closed Veske closed 8 years ago

Veske commented 8 years ago

Has anyone actually tried the disabled state? If I would put ng-disabled="someExpressionThatEvaluatesToTrue" then the multiselect will not get disabled.

The line $parse(attrs.disabled)(originalScope) seems to return undefined.

amitava82 commented 8 years ago

It's disabled as you can see in e $parse(attrs.disabled)(originalScope)

Veske commented 8 years ago

Huh? ng-disabled adds a disabled property to the html element if the expression equals to true. Problem is that the line$parse(attrs.disabled)(originalScope) return undefined or to be more precise it returns null. So the listener function never gets called.

Veske commented 8 years ago

I mean go here: http://amitava82.github.io/angular-multiselect/ and try to add either disabled or ng-disabled to any of the multiselect boxes. It has no effect.