-
Notifications
You must be signed in to change notification settings - Fork 641
Closed
Milestone
Description
I have initiated the form scope with an empty object {}, one of it's properties are of array type with simple string as items.
When I click on the "Add" button it returns the follow error,
TypeError: Cannot read property 'length' of undefined
at n.angular.module.directive.link.scope.$watch.scope.appendToArray (/assets/scripts/schema-form.js:1587:27)
Inspecting list and scope.modelArray shows an empty array during form initialize, but list.length loses reference and turns into undefined in line 1587 appendToArray().