@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
package/dist/jsx.js
CHANGED
package/package.json
CHANGED