@optionfactory/ful 4.0.4 → 4.0.6

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
@@ -1951,6 +1951,7 @@ class Select extends ParsedElement {
1951
1951
  await this.#loader.prefetch?.();
1952
1952
  const fragment = this.template().withOverlay({ slots, name }).render();
1953
1953
  this.#input = fragment.querySelector('input');
1954
+ Attributes.forward('input-', this, this.#input);
1954
1955
  this.#badges = fragment.querySelector('badges');
1955
1956
 
1956
1957
  this.value = observed.value;
@@ -2093,7 +2094,7 @@ class Select extends ParsedElement {
2093
2094
  }
2094
2095
  (async () => {
2095
2096
  const entries = await (this.#multiple ? this.#loader.exact(...vs) : this.#loader.exact(vs));
2096
- this.#values = new Map(entries);
2097
+ this.#values = new Map(entries.map(e => [e[0], e.slice(1)]));
2097
2098
  this.#syncBadges();
2098
2099
  })();
2099
2100
  }