Skip to content

Commit

Permalink
fix issue when closing tab
Browse files Browse the repository at this point in the history
  • Loading branch information
crosshj committed Aug 29, 2022
1 parent fd7dd9b commit 39dd531
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fiug/layout",
"version": "0.0.12",
"version": "0.0.13",
"description": "page layout for browser applications",
"main": "dist/layout.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/tabbed.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const openTab = (parent, src, layout) => {
const content = parent.querySelector('.content');
const tabsContainer = parent.querySelector('.tabs-container');

content.innerHTML = createContentDom({ layout, src, childrenOnly: true });
content.innerHTML = createContentDom({ layout, src, childrenOnly: true, paneid: parent.id });

Array.from(parent.querySelectorAll('.tab.active'))
.forEach(x=>x.classList.remove('active'));
Expand Down

0 comments on commit 39dd531

Please sign in to comment.