@faber1999/axon.js 0.4.1 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,11 +55,13 @@ function runOwned(fn) {
55
55
  const parent = getCurrentOwner();
56
56
  if (parent) parent._children.push(owner);
57
57
  ownerStack.push(owner);
58
+ const savedEffects = effectStack.splice(0);
58
59
  let result;
59
60
  try {
60
61
  result = fn();
61
62
  } finally {
62
63
  ownerStack.pop();
64
+ effectStack.push(...savedEffects);
63
65
  }
64
66
  queueMicrotask(() => {
65
67
  if (!owner._mounted) {
@@ -167,6 +169,8 @@ function applyProp(el, key, value) {
167
169
  else el.removeAttribute(key);
168
170
  } else if (key === "innerHTML") {
169
171
  el.innerHTML = value;
172
+ } else if (key === "value") {
173
+ el.value = value == null ? "" : String(value);
170
174
  } else {
171
175
  if (value == null || value === false) {
172
176
  el.removeAttribute(key);
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  runOwned,
10
10
  runWithOwner,
11
11
  untrack
12
- } from "./chunk-RKZYBE62.js";
12
+ } from "./chunk-OJYYRMLE.js";
13
13
 
14
14
  // src/reactivity/signal.ts
15
15
  var batchDepth = 0;
package/dist/jsx.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Fragment,
3
3
  h
4
- } from "./chunk-RKZYBE62.js";
4
+ } from "./chunk-OJYYRMLE.js";
5
5
  export {
6
6
  Fragment,
7
7
  h
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faber1999/axon.js",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "A fine-grained reactive frontend framework with JSX",
5
5
  "author": "Faber Grajales Hincapié <faber1999> (https://github.com/faber1999)",
6
6
  "repository": {