Skip to content

Commit 54ea39c

Browse files
committed
Possible fix for the updateOn problem
1 parent 62f8c77 commit 54ea39c

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

dist/schema-form.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,10 @@ angular.module('schemaForm').provider('schemaFormDecorators',
268268
// Rebind our part of the form to the scope.
269269
var once = scope.$watch(attrs.form, function(form) {
270270
if (form) {
271+
// Workaround for 'updateOn' error from ngModelOptions
272+
// see https://github.com/Textalk/angular-schema-form/issues/255
273+
// and https://github.com/Textalk/angular-schema-form/issues/206
274+
form.ngModelOptions = form.ngModelOptions || {};
271275
scope.form = form;
272276

273277
//ok let's replace that template!

0 commit comments

Comments
 (0)