biblio-react 3.0.0-alpha118 → 3.0.0-alpha119

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.js CHANGED
@@ -56616,7 +56616,16 @@ const Nee = Lee((t) => {
56616
56616
  ...t,
56617
56617
  ref: e
56618
56618
  }), "IMaskInputFn"), _ee = Ge.forwardRef(Dee), Bee = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
56619
- const { onChange: n, name: o, maxLength: i = 50, ...s } = e;
56619
+ const { onChange: n, name: o, maxLength: i = 50, ...s } = e, l = O.useRef(!1), u = O.useCallback(
56620
+ (d) => {
56621
+ if (!l.current) {
56622
+ l.current = !0;
56623
+ return;
56624
+ }
56625
+ n && n({ target: { name: o, value: d } });
56626
+ },
56627
+ [n, o]
56628
+ );
56620
56629
  return /* @__PURE__ */ y(
56621
56630
  _ee,
56622
56631
  {
@@ -56624,9 +56633,7 @@ const Nee = Lee((t) => {
56624
56633
  mask: Array(i).fill(/./),
56625
56634
  unmask: !1,
56626
56635
  maxLength: i,
56627
- onAccept: /* @__PURE__ */ a((l) => {
56628
- n && n({ target: { name: o, value: l } });
56629
- }, "onAccept"),
56636
+ onAccept: u,
56630
56637
  inputRef: r
56631
56638
  }
56632
56639
  );