Skip to content

Commit f08afbd

Browse files
committed
chore: Bump version to 1.0.7 in package.json and update sidebar-container to use body.children for content handling
1 parent 78137e5 commit f08afbd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jmkcoder/components",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "Odyssey Web Components Library",
55
"main": "dist/index.js",
66
"module": "dist/index.esm.js",

src/components/sidebar-container/sidebar-container.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class SidebarContainer extends HTMLElement {
3636
// Move existing children (except header and footer) into the content area
3737
const contentArea = this.querySelector('.sidebar-content');
3838
if (contentArea) {
39-
Array.from(userContentDoc.children).forEach((child) => {
39+
Array.from(userContentDoc.body.children).forEach((child) => {
4040
if (child.tagName.toLowerCase() !== 'header' && child.tagName.toLowerCase() !== 'footer') {
4141
contentArea.appendChild(child);
4242
}

0 commit comments

Comments
 (0)