Skip to content

Commit

Permalink
v1.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishiv committed Oct 15, 2024
1 parent aacb2a5 commit 539006f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alfama",
"version": "1.3.3",
"version": "1.3.4",
"author": "Abhishiv Saxena<[email protected]>",
"license": "MIT",
"description": "Fine-grained reactive library with no compiler, no magic, and no virtual DOM",
Expand Down Expand Up @@ -52,7 +52,5 @@
"dependencies": {
"on-change": "^5.0.1"
},
"optionalDependencies": {
"popmotion": "*"
}
"optionalDependencies": {}
}
4 changes: 4 additions & 0 deletions src/dom/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ const setAttributeValue = (
} else {
(el as HTMLElement).setAttribute(attr, val);
}
if (el.tagName === "INPUT" && attr === "checked")
(el as HTMLInputElement).checked = !!val;
if (el.tagName === "INPUT" && attr === "value")
(el as HTMLInputElement).value = val;
} catch (e) {
console.error(el, attr, val);
throw e;
Expand Down

0 comments on commit 539006f

Please sign in to comment.