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

Commit 3c7de8d

Browse files
committed
Merge pull request #116 from Burgov/patch-1
Fix ui-select2 in Angular 1.2.3
2 parents 54b379c + 6ab3250 commit 3c7de8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/select2.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ angular.module('ui.select2', []).value('uiSelect2Config', {}).directive('uiSelec
147147

148148
if (!isSelect) {
149149
// Set the view and model value and update the angular template manually for the ajax/multiple select2.
150-
elm.bind("change", function () {
150+
elm.bind("change", function (e) {
151+
e.stopImmediatePropagation();
152+
151153
if (scope.$$phase || scope.$root.$$phase) {
152154
return;
153155
}

0 commit comments

Comments
 (0)