beca-ui 2.0.10-beta.25 → 2.0.10-beta.26

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.
Files changed (2) hide show
  1. package/dist/beca-ui.js +17 -12
  2. package/package.json +1 -1
package/dist/beca-ui.js CHANGED
@@ -98326,12 +98326,17 @@ const Z9 = _4, gJe = (e) => {
98326
98326
  let n = "beca-drawer";
98327
98327
  return t && (n += " " + t), n;
98328
98328
  }, vJe = (e) => /* @__PURE__ */ z(aF, { ...e, className: gJe(e) }), Ofe = vJe, yJe = (e) => {
98329
- const { formItemProps: t, selectProps: n } = e, { label: r, labelCol: o, wrapperCol: i, ...a } = t ?? {}, { isMobileApp: l } = nfe(), [s, c] = Et(!1), d = () => {
98330
- c(!0);
98331
- }, h = () => {
98332
- c(!1);
98329
+ const { formItemProps: t, selectProps: n } = e, { label: r, labelCol: o, wrapperCol: i, ...a } = t ?? {}, l = pt(null), { isMobileApp: s } = nfe(), [c, d] = Et(!1), h = () => {
98330
+ d(!0);
98331
+ }, m = () => {
98332
+ d(!1);
98333
98333
  };
98334
- return t ? /* @__PURE__ */ cn(Vh, { children: [
98334
+ return Jt(() => {
98335
+ c && l && setTimeout(() => {
98336
+ var v;
98337
+ (v = l.current) == null || v.blur();
98338
+ }, 500);
98339
+ }, [c]), t ? /* @__PURE__ */ cn(Vh, { children: [
98335
98340
  /* @__PURE__ */ z(
98336
98341
  Z9.Item,
98337
98342
  {
@@ -98343,24 +98348,24 @@ const Z9 = _4, gJe = (e) => {
98343
98348
  children: /* @__PURE__ */ z(
98344
98349
  Ec,
98345
98350
  {
98351
+ ref: l,
98346
98352
  ...n,
98347
98353
  open: !1,
98348
- onClick: (m) => {
98349
- m.preventDefault(), d();
98350
- },
98351
- autoFocus: !1
98354
+ onClick: (v) => {
98355
+ v.preventDefault(), h();
98356
+ }
98352
98357
  }
98353
98358
  )
98354
98359
  }
98355
98360
  ),
98356
- l && /* @__PURE__ */ z(
98361
+ s && /* @__PURE__ */ z(
98357
98362
  Ofe,
98358
98363
  {
98359
98364
  title: r,
98360
98365
  placement: "bottom",
98361
98366
  closable: !1,
98362
- open: s,
98363
- onClose: h,
98367
+ open: c,
98368
+ onClose: m,
98364
98369
  height: 364,
98365
98370
  className: "mobile-select-drawer",
98366
98371
  destroyOnClose: !0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beca-ui",
3
- "version": "2.0.10-beta.25",
3
+ "version": "2.0.10-beta.26",
4
4
  "description": "Becawork UI",
5
5
  "license": "MIT",
6
6
  "author": {