Skip to content

Commit

Permalink
🔧 Fix children reactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyAom committed Jun 2, 2020
1 parent efec01b commit 6ccf243
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -685,9 +685,10 @@ const h = (
childNodes: NodeListOf<ChildNode>
) => {
element
.querySelectorAll('children')
.querySelectorAll('children, #__children')
.forEach((_element: ForsteriElement__EnsureElement) => {
let childrenWrapper = document.createElement("div")
childrenWrapper.id = "__children"

childNodes.forEach((child) => {
childrenWrapper.appendChild(child)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "forsteri",
"description": "Reusable reactive Web Component with Virtual DOM in 1KB (gzipped)",
"version": "0.2.11",
"version": "0.2.12",
"main": "index.js",
"typings": "dist/index.d.ts",
"keywords": [
Expand Down

0 comments on commit 6ccf243

Please sign in to comment.