Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 54b379c

Browse files
committed
Fix deprecated ng-multiple attribute causing toggling of multi-select to fail
Fix #125
1 parent 482cd86 commit 54b379c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/select2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ angular.module('ui.select2', []).value('uiSelect2Config', {}).directive('uiSelec
183183

184184
if (attrs.ngMultiple) {
185185
scope.$watch(attrs.ngMultiple, function(newVal) {
186+
attrs.$set('multiple', !!newVal);
186187
elm.select2(opts);
187188
});
188189
}

0 commit comments

Comments
 (0)