amitava82 / angular-multiselect

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

Re disabled attributes #83

Open Veske opened 8 years ago

Veske commented 8 years ago

I don't understand why you closed to issue... But the fix would be to change the code so:

scope.$watch(function () {
                        return attrs.disabled;
                    }, function (newVal) {
                        scope.disabled = newVal;
                    });

You can test at http://amitava82.github.io/angular-multiselect/ and add a disabled attribute to one of the select boxes there and see that it does not work currently.

amitava82 commented 8 years ago

Works for me http://plnkr.co/edit/csrzsXv18E6GTuXCQpzO?p=preview