mirror of
https://github.com/flextype/flextype.git
synced 2025-08-24 13:52:56 +02:00
fix(core): fix state of active tabs for all generated forms #276
This commit is contained in:
@@ -109,7 +109,7 @@ class Forms
|
||||
|
||||
// Go through all sections and create nav tabs
|
||||
foreach ($fieldset['sections'] as $key => $section) {
|
||||
$form .= '<div class="tab-pane fade show ' . ($key === 'main' ? 'active' : '') . '" id="pills-' . $key . '" role="tabpanel" aria-labelledby="pills-' . $key . '-tab">';
|
||||
$form .= '<div class="tab-pane fade ' . ($key === 'main' ? 'show active' : '') . '" id="pills-' . $key . '" role="tabpanel" aria-labelledby="pills-' . $key . '-tab">';
|
||||
$form .= '<div class="row">';
|
||||
|
||||
foreach ($section['fields'] as $element => $property) {
|
||||
|
Reference in New Issue
Block a user