Skip to content

Commit a684d2c

Browse files
committed
fix(forms) Fix problem with tabset caused by ui-bootstrap 0.13
1 parent 22a644c commit a684d2c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

js/directives/form.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,11 @@ module fng.directives {
238238
}
239239
}
240240
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 += '>';
242246
result.after = '</tab>';
243247
} else {
244248
result.before = '<p>Error! Tab ' + info.title + ' not found in tab list</p>';
@@ -315,7 +319,7 @@ module fng.directives {
315319
template += topAndTail.before;
316320
template += processInstructions(info.schema, null, {
317321
subschema: 'true', // We are trying to behave like attrs here
318-
formStyle: options.formstyle,
322+
formstyle: options.formstyle,
319323
subkey: schemaDefName + '_subkey',
320324
subkeyno: arraySel,
321325
subschemaroot: info.name

0 commit comments

Comments
 (0)