You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user/developer, when I use tabarray for definition I should be able to have first tab displayed
Expected behaviour
I expected the first tab to be displayed by default
Actual behaviour
It actually displays the first tab selector as active/chosen, but with no actual tab contents vsible. Upon clicking on another tab (or adding another value to array), and then clicking back to the first tab, the contents are correctly displayed
I have experimented with supplying non-emtpy initial values in the model as well as startEmpty: false, but nothing appears to positively affect the behavior described above (empty initial tab contents until click away and back).
@json-schema-form/angular-schema-form-lead
The text was updated successfully, but these errors were encountered:
Interesting, I made a plunker (https://plnkr.co/edit/QfjzjIfvD1lcQpy7InNV?p=preview) to demo this issue. However, it works as desired in the plunker. It appears that the first tab is just not receiving the 'active' class in my main effort. Any idea what could cause that? I have swapped out all of the script includes to match those used and the plunker and still not luck - the only difference appears to be nesting of form inside other markup. Also, manually applying 'active' class via dev tools produces desired visual results. More to come, but I'd appreciate any thoughts or ideas od what may be preventing the active flag from being applied in some cases when it should be?
This is the produced markup that seemingly shout have the 'active' class, but does not? devtools confirms that both selected.tab and $index in scope are 0
<div class="clearfix index0 tab-pane tab0" sf-field-model="ng-repeat" ng-repeat="item in model['subforms'] track by $index" ng-show="selected.tab === $index" ng-class="{active: selected.tab === $index}">
@skidvd this is most common when something interrupts the final stages of the digest, can you test that by running the digest via console to see if running once more would finish the render?
I am using the 1.0.0-alpha.4 version.
???
As a user/developer, when I use tabarray for definition I should be able to have first tab displayed
Expected behaviour
I expected the first tab to be displayed by default
Actual behaviour
It actually displays the first tab selector as active/chosen, but with no actual tab contents vsible. Upon clicking on another tab (or adding another value to array), and then clicking back to the first tab, the contents are correctly displayed
When using the following template:
<form name="forms.schemaForm" sf-schema="schema" sf-form="form" sf-model="model"></form>
and scope definitions:
I have experimented with supplying non-emtpy initial values in the model as well as startEmpty: false, but nothing appears to positively affect the behavior described above (empty initial tab contents until click away and back).
@json-schema-form/angular-schema-form-lead
The text was updated successfully, but these errors were encountered: