Skip to content

Commit 526b4a8

Browse files
authored
Update builder.js
Added reset of ngif var to false
1 parent 536576b commit 526b4a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/services/builder.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,11 @@ angular.module('schemaForm').provider('sfBuilder', ['sfPathProvider', function(s
126126
}
127127

128128
var children = args.fieldFrag.children || args.fieldFrag.childNodes;
129+
var child;
130+
var ngIf;
129131
for (var i = 0; i < children.length; i++) {
130-
var child = children[i];
132+
child = children[i];
133+
ngIf = false;
131134

132135
if (child.hasAttribute && child.hasAttribute('ng-if')) {
133136
ngIf = child.getAttribute('ng-if');

0 commit comments

Comments
 (0)