thunderous 2.3.10 → 2.3.11
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.
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -854,8 +854,8 @@ You must set an initial value before calling a property signal's getter.
|
|
854
854
|
busy = true;
|
855
855
|
const value = getter();
|
856
856
|
if (value === void 0) return;
|
857
|
-
if (value !== null) {
|
858
|
-
this.setAttribute(attrName, String(value));
|
857
|
+
if (value !== null && value !== false) {
|
858
|
+
this.setAttribute(attrName, String(value === true ? "" : value));
|
859
859
|
} else {
|
860
860
|
this.removeAttribute(attrName);
|
861
861
|
}
|
package/dist/index.js
CHANGED
@@ -819,8 +819,8 @@ You must set an initial value before calling a property signal's getter.
|
|
819
819
|
busy = true;
|
820
820
|
const value = getter();
|
821
821
|
if (value === void 0) return;
|
822
|
-
if (value !== null) {
|
823
|
-
this.setAttribute(attrName, String(value));
|
822
|
+
if (value !== null && value !== false) {
|
823
|
+
this.setAttribute(attrName, String(value === true ? "" : value));
|
824
824
|
} else {
|
825
825
|
this.removeAttribute(attrName);
|
826
826
|
}
|