Skip to content

Commit 6ccf243

Browse files
committed
🔧 Fix children reactivity
1 parent efec01b commit 6ccf243

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,9 +685,10 @@ const h = (
685685
childNodes: NodeListOf<ChildNode>
686686
) => {
687687
element
688-
.querySelectorAll('children')
688+
.querySelectorAll('children, #__children')
689689
.forEach((_element: ForsteriElement__EnsureElement) => {
690690
let childrenWrapper = document.createElement("div")
691+
childrenWrapper.id = "__children"
691692

692693
childNodes.forEach((child) => {
693694
childrenWrapper.appendChild(child)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "forsteri",
33
"description": "Reusable reactive Web Component with Virtual DOM in 1KB (gzipped)",
4-
"version": "0.2.11",
4+
"version": "0.2.12",
55
"main": "index.js",
66
"typings": "dist/index.d.ts",
77
"keywords": [

0 commit comments

Comments
 (0)