@ahrowe/ui 0.2.6 → 0.2.7

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/index.mjs CHANGED
@@ -2526,6 +2526,7 @@ function Tn({ label: e = "", value: t = "", formValidator: n = null, items: r =
2526
2526
  value: v,
2527
2527
  onChange: (e) => {
2528
2528
  if (y(e), T(null), C(!0), a) n && n.set(e), m && m(e);
2529
+ else if (e === "") n && n.set(""), m && m(""), u("");
2529
2530
  else {
2530
2531
  let t = r.find((t) => (t.label ?? t.value).toLowerCase() === e.toLowerCase());
2531
2532
  t && (n && n.set(t.value), m && m(t.value), u(t.value));