Skip to content

Commit

Permalink
Fix updating view after programmatic changes from commit d49b5e4 and …
Browse files Browse the repository at this point in the history
…pull request angular-ui#221 that hasn't been merged in 3 months.
  • Loading branch information
mprent99 committed Sep 30, 2014
1 parent afa6589 commit 5f0cf7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/select2.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ angular.module('ui.select2', []).value('uiSelect2Config', {}).directive('uiSelec
if (current === old) {
return;
}
controller.$render();
$timeout(function () {
controller.$render();
});
}, true);
controller.$render = function () {
if (isSelect) {
Expand Down

0 comments on commit 5f0cf7b

Please sign in to comment.