@optionfactory/ful 4.0.10 → 4.0.11

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
@@ -1996,7 +1996,9 @@ var ful = (function (exports, ftl) {
1996
1996
  this.#changed();
1997
1997
  this.#syncBadges();
1998
1998
  });
1999
-
1999
+ this.#input.addEventListener('change', e => {
2000
+ e.stopPropagation();
2001
+ });
2000
2002
  this.#input.addEventListener('blur', e => {
2001
2003
  e.stopPropagation();
2002
2004
  if (e.relatedTarget && this.contains(e.relatedTarget)) {
@@ -2062,6 +2064,7 @@ var ful = (function (exports, ftl) {
2062
2064
  this.#syncBadges();
2063
2065
  this.#input.focus();
2064
2066
  this.#ddmenu.hide();
2067
+ this.#input.value = '';
2065
2068
  });
2066
2069
  this.replaceChildren(fragment);
2067
2070
  }
@@ -2578,7 +2581,7 @@ var ful = (function (exports, ftl) {
2578
2581
  return await this.#http.request(this.#method, this.#url)
2579
2582
  .param("page", pageRequest.page)
2580
2583
  .param("size", pageRequest.size)
2581
- .param("sort", sortRequest.order ? `${sortRequest.sorter},${sortRequest.order}` : null)
2584
+ .param("sort", sortRequest ? `${sortRequest.sorter},${sortRequest.order}` : null)
2582
2585
  .param("filters", filters.length > 0 ? JSON.stringify(Object.fromEntries(filters)) : null)
2583
2586
  .fetchJson();
2584
2587
  }