@optionfactory/ful 1.0.0 → 1.0.2
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/ful.css +1 -1
- package/dist/ful.css.map +1 -1
- package/dist/ful.iife.js +3 -1
- package/dist/ful.iife.js.map +1 -1
- package/dist/ful.iife.min.js +1 -1
- package/dist/ful.iife.min.js.map +1 -1
- package/dist/ful.min.mjs +1 -1
- package/dist/ful.min.mjs.map +1 -1
- package/dist/ful.mjs +3 -1
- package/dist/ful.mjs.map +1 -1
- package/package.json +1 -1
package/dist/ful.mjs
CHANGED
|
@@ -490,6 +490,7 @@ class HttpRequestBuilder {
|
|
|
490
490
|
param(k, ...vs) {
|
|
491
491
|
if (vs.length === 0 || vs[0] === null || vs[0] === undefined) {
|
|
492
492
|
this.#params.delete(k);
|
|
493
|
+
return this;
|
|
493
494
|
}
|
|
494
495
|
for (const v of vs) {
|
|
495
496
|
this.#params.append(k, v);
|
|
@@ -1270,6 +1271,7 @@ class Form extends ParsedElement {
|
|
|
1270
1271
|
form.replaceChildren(...this.childNodes);
|
|
1271
1272
|
form.addEventListener('submit', async (e) => {
|
|
1272
1273
|
e.preventDefault();
|
|
1274
|
+
e.stopPropagation();
|
|
1273
1275
|
await this.submit();
|
|
1274
1276
|
});
|
|
1275
1277
|
if (this.hasAttribute("clear-invalid-on-change")) {
|
|
@@ -1770,7 +1772,7 @@ class RadioGroup extends ParsedElement {
|
|
|
1770
1772
|
<div class="label-wrapper" data-tpl-each="inputsAndLabels" data-tpl-var="ial">
|
|
1771
1773
|
<label>
|
|
1772
1774
|
{{{{ ial[0] }}}}
|
|
1773
|
-
{{{{ ial[1] }}}}
|
|
1775
|
+
<div>{{{{ ial[1] }}}}</div>
|
|
1774
1776
|
</label>
|
|
1775
1777
|
</div>
|
|
1776
1778
|
</section>
|