Skip to content

Commit e5a114e

Browse files
committed
Call ngModel.$setDirty() when deleting from array
- Closes #102
1 parent dbc3fe8 commit e5a114e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dist/schema-form.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,6 +1087,7 @@ angular.module('schemaForm').directive('sfArray', ['sfSelect', 'schemaForm', 'sf
10871087
if (scope.validateArray) {
10881088
scope.validateArray();
10891089
}
1090+
ngModel.$setDirty();
10901091
return list;
10911092
};
10921093

src/directives/array.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ angular.module('schemaForm').directive('sfArray', ['sfSelect', 'schemaForm', 'sf
128128
if (scope.validateArray) {
129129
scope.validateArray();
130130
}
131+
ngModel.$setDirty();
131132
return list;
132133
};
133134

0 commit comments

Comments
 (0)