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