@optionfactory/ful 5.0.4 → 5.0.5

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
  });