@optionfactory/ful 5.0.4 → 6.0.0

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
@@ -2283,7 +2283,7 @@ class Select extends ParsedElement {
2283
2283
  if (idx === -1) {
2284
2284
  return;
2285
2285
  }
2286
- this.#values.delete(Array.from(this.#values.keys()).pop());
2286
+ this.#values.delete(Array.from(this.#values.keys())[idx]);
2287
2287
  this.#changed();
2288
2288
  this.#syncBadges();
2289
2289
  });
@@ -2296,7 +2296,7 @@ class Select extends ParsedElement {
2296
2296
  if (idx === -1) {
2297
2297
  return;
2298
2298
  }
2299
- this.#values.delete(Array.from(this.#values.keys()).pop());
2299
+ this.#values.delete(Array.from(this.#values.keys())[idx]);
2300
2300
  this.#changed();
2301
2301
  this.#syncBadges();
2302
2302
  });
@@ -3044,7 +3044,7 @@ class Table extends ParsedElement {
3044
3044
  #latestRequest;
3045
3045
  async render({ slots, observed }) {
3046
3046
  const template = this.template();
3047
- const schema = TableSchemaParser.parse(slots.default, template);
3047
+ const schema = TableSchemaParser.parse(slots.schema, template);
3048
3048
  const fragment = template.withOverlay({ slots, schema }).render();
3049
3049
  const tableWrapper = /** @type HTMLTableElement */ (Nodes.queryChildren(fragment, '.table-wrapper'));
3050
3050
  const table = /** @type HTMLTableElement */ (tableWrapper.querySelector("table"));