When switching between tabs, editors remain open (#586)
I misunderstood the purpose of a ko.foreach() loop in my changes back in #534. This re-introduces the loop.
This commit is contained in:
parent
f82b0b442e
commit
4c2f22c2b1
|
@ -76,10 +76,10 @@
|
||||||
|
|
||||||
<!-- Tabs Panes -- Start -->
|
<!-- Tabs Panes -- Start -->
|
||||||
<div class="tabPanesContainer">
|
<div class="tabPanesContainer">
|
||||||
<!-- ko if: activeTab && activeTab() -->
|
<!-- ko foreach: openedTabs -->
|
||||||
<div class="tabs-container" data-bind="visible: activeTab().isActive">
|
<div class="tabs-container" data-bind="visible: $data.isActive">
|
||||||
<span
|
<span
|
||||||
data-bind="class: activeTab().constructor.component.name, component: { name: activeTab().constructor.component.name, params: activeTab }"
|
data-bind="class: $data.constructor.component.name, component: { name: $data.constructor.component.name, params: $data }"
|
||||||
></span>
|
></span>
|
||||||
</div>
|
</div>
|
||||||
<!-- /ko -->
|
<!-- /ko -->
|
||||||
|
|
Loading…
Reference in New Issue