Skip to content

Commit aeed8d6

Browse files
Do not set $dirty flag on init
1 parent 773f002 commit aeed8d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/select2.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ angular.module('ui.select2', []).value('uiSelect2Config', {}).directive('uiSelec
112112
// Watch the options dataset for changes
113113
if (watch) {
114114
scope.$watch(watch, function (newVal, oldVal, scope) {
115-
if (!newVal) {
115+
if (angular.equals(newVal, oldVal)) {
116116
return;
117117
}
118118
// Delayed so that the options have time to be rendered

0 commit comments

Comments
 (0)