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

Commit 6ab3250

Browse files
BurgovBart van den Burg
authored andcommitted
Fix ui-select2 in Angular 1.2.3
fixed angular/angular.js#5219
1 parent dad4e19 commit 6ab3250

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
@@ -143,7 +143,9 @@ angular.module('ui.select2', []).value('uiSelect2Config', {}).directive('uiSelec
143143

144144
if (!isSelect) {
145145
// Set the view and model value and update the angular template manually for the ajax/multiple select2.
146-
elm.bind("change", function () {
146+
elm.bind("change", function (e) {
147+
e.stopImmediatePropagation();
148+
147149
if (scope.$$phase || scope.$root.$$phase) {
148150
return;
149151
}

0 commit comments

Comments
 (0)