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:
Jordi Bunster 2021-03-29 10:38:41 -07:00 committed by GitHub
parent f82b0b442e
commit 4c2f22c2b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,10 +76,10 @@
<!-- Tabs Panes -- Start -->
<div class="tabPanesContainer">
<!-- ko if: activeTab && activeTab() -->
<div class="tabs-container" data-bind="visible: activeTab().isActive">
<!-- ko foreach: openedTabs -->
<div class="tabs-container" data-bind="visible: $data.isActive">
<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>
</div>
<!-- /ko -->