@optionfactory/ful 5.0.5 → 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
  }
@@ -3045,7 +3048,7 @@ var ful = (function (exports, ftl) {
3045
3048
  #latestRequest;
3046
3049
  async render({ slots, observed }) {
3047
3050
  const template = this.template();
3048
- const schema = TableSchemaParser.parse(slots.default, template);
3051
+ const schema = TableSchemaParser.parse(slots.schema, template);
3049
3052
  const fragment = template.withOverlay({ slots, schema }).render();
3050
3053
  const tableWrapper = /** @type HTMLTableElement */ (ftl.Nodes.queryChildren(fragment, '.table-wrapper'));
3051
3054
  const table = /** @type HTMLTableElement */ (tableWrapper.querySelector("table"));