@ahrowe/ui 0.2.6 → 0.2.8
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -881,9 +881,7 @@ function ut({ name: t = "", id: n, label: r = "", errorMessage: s = "", isValid:
|
|
|
881
881
|
!e || !le || (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
|
|
882
882
|
}, [le]);
|
|
883
883
|
a(() => {
|
|
884
|
-
|
|
885
|
-
me(!1), ge(!1);
|
|
886
|
-
}, 1), J();
|
|
884
|
+
J();
|
|
887
885
|
}, []), a(() => {
|
|
888
886
|
N && be.current && setTimeout(() => {
|
|
889
887
|
be.current?.focus();
|
|
@@ -2526,6 +2524,7 @@ function Tn({ label: e = "", value: t = "", formValidator: n = null, items: r =
|
|
|
2526
2524
|
value: v,
|
|
2527
2525
|
onChange: (e) => {
|
|
2528
2526
|
if (y(e), T(null), C(!0), a) n && n.set(e), m && m(e);
|
|
2527
|
+
else if (e === "") n && n.set(""), m && m(""), u("");
|
|
2529
2528
|
else {
|
|
2530
2529
|
let t = r.find((t) => (t.label ?? t.value).toLowerCase() === e.toLowerCase());
|
|
2531
2530
|
t && (n && n.set(t.value), m && m(t.value), u(t.value));
|