File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,11 @@ module fng.directives {
238
238
}
239
239
}
240
240
if ( tabNo >= 0 ) {
241
- result . before = '<tab select="updateQueryForTab(\'' + info . title + '\')" heading="' + info . title + '" active="tabs[' + tabNo + '].active">' ;
241
+ result . before = '<tab select="updateQueryForTab(\'' + info . title + '\')" heading="' + info . title + '"'
242
+ if ( tabNo > 0 ) {
243
+ result . before += 'active="tabs[' + tabNo + '].active"' ;
244
+ }
245
+ result . before += '>' ;
242
246
result . after = '</tab>' ;
243
247
} else {
244
248
result . before = '<p>Error! Tab ' + info . title + ' not found in tab list</p>' ;
@@ -315,7 +319,7 @@ module fng.directives {
315
319
template += topAndTail . before ;
316
320
template += processInstructions ( info . schema , null , {
317
321
subschema : 'true' , // We are trying to behave like attrs here
318
- formStyle : options . formstyle ,
322
+ formstyle : options . formstyle ,
319
323
subkey : schemaDefName + '_subkey' ,
320
324
subkeyno : arraySel ,
321
325
subschemaroot : info . name
You can’t perform that action at this time.
0 commit comments