@optionfactory/ful 6.0.0 → 6.0.1

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.mjs CHANGED
@@ -1400,8 +1400,11 @@ class Form extends ParsedElement {
1400
1400
  const hel = /** @type HTMLElement */ (el);
1401
1401
  hel.hidden = !spin;
1402
1402
  });
1403
- this.querySelectorAll('[type=submit],[type=reset]').forEach(el => {
1404
- const hel = /** @type HTMLButtonElement */ (el);
1403
+ this.querySelectorAll('input,button').forEach(el => {
1404
+ const hel = /** @type HTMLButtonElement|HTMLInputElement */ (el);
1405
+ if(hel.type !== 'submit' && hel.type !== 'reset'){
1406
+ return;
1407
+ }
1405
1408
  hel.disabled = spin;
1406
1409
  });
1407
1410
  }