@@ -232,12 +232,14 @@ angular.module('schemaForm').provider('sfBuilder', ['sfPathProvider', function(s
232232 for ( var i = 0 ; i < transclusions . length ; i ++ ) {
233233 var n = transclusions [ i ] ;
234234
235- // The sf-transclude attribute is not a directive, but has the name of what we're supposed to
236- // traverse.
237- var sub = args . form [ n . getAttribute ( 'sf-field-transclude' ) ] ;
238- if ( sub ) {
239- sub = Array . isArray ( sub ) ? sub : [ sub ] ;
240- var childFrag = args . build ( sub , args . path + '.' + sub , args . state ) ;
235+ // The sf-transclude attribute is not a directive,
236+ // but has the name of what we're supposed to
237+ // traverse. Default to `items`
238+ var sub = n . getAttribute ( 'sf-field-transclude' ) || 'items' ;
239+ var items = args . form [ sub ] ;
240+
241+ if ( items ) {
242+ var childFrag = args . build ( items , args . path + '.' + sub , args . state ) ;
241243 n . appendChild ( childFrag ) ;
242244 }
243245 }
@@ -248,7 +250,7 @@ angular.module('schemaForm').provider('sfBuilder', ['sfPathProvider', function(s
248250 // but be nice to existing ng-if.
249251 if ( args . form . condition ) {
250252 var evalExpr = 'evalExpr(' + args . path +
251- '.contidion , { model: model, "arrayIndex": $index})' ;
253+ '.condition , { model: model, "arrayIndex": $index})' ;
252254 if ( args . form . key ) {
253255 var strKey = sfPathProvider . stringify ( args . form . key ) ;
254256 evalExpr = 'evalExpr(' + args . path + '.condition,{ model: model, "arrayIndex": $index, ' +
0 commit comments