Skip to content

Commit 5f0cf7b

Browse files
author
mprent99
committed
Fix updating view after programmatic changes from commit d49b5e4 and pull request angular-ui#221 that hasn't been merged in 3 months.
1 parent afa6589 commit 5f0cf7b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/select2.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ angular.module('ui.select2', []).value('uiSelect2Config', {}).directive('uiSelec
8989
if (current === old) {
9090
return;
9191
}
92-
controller.$render();
92+
$timeout(function () {
93+
controller.$render();
94+
});
9395
}, true);
9496
controller.$render = function () {
9597
if (isSelect) {

0 commit comments

Comments
 (0)