logix-payment-shift4 1.2.0 → 1.2.1

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.js CHANGED
@@ -340,7 +340,9 @@ function PaymentForm(_ref) {
340
340
  case 9:
341
341
  if (typeof successPage === "function") {
342
342
  successPage(result.message);
343
- e.target.reset();
343
+ if (formRef.current) {
344
+ formRef.current.clear();
345
+ }
344
346
  }
345
347
  _context2.n = 11;
346
348
  break;
@@ -348,6 +350,9 @@ function PaymentForm(_ref) {
348
350
  _context2.p = 10;
349
351
  _t2 = _context2.v;
350
352
  if (typeof errorPage === "function") errorPage(_t2.message);
353
+ if (formRef.current) {
354
+ formRef.current.clear();
355
+ }
351
356
  case 11:
352
357
  _context2.p = 11;
353
358
  setIsSubmitting(false);
package/dist/index.esm.js CHANGED
@@ -338,7 +338,9 @@ function PaymentForm(_ref) {
338
338
  case 9:
339
339
  if (typeof successPage === "function") {
340
340
  successPage(result.message);
341
- e.target.reset();
341
+ if (formRef.current) {
342
+ formRef.current.clear();
343
+ }
342
344
  }
343
345
  _context2.n = 11;
344
346
  break;
@@ -346,6 +348,9 @@ function PaymentForm(_ref) {
346
348
  _context2.p = 10;
347
349
  _t2 = _context2.v;
348
350
  if (typeof errorPage === "function") errorPage(_t2.message);
351
+ if (formRef.current) {
352
+ formRef.current.clear();
353
+ }
349
354
  case 11:
350
355
  _context2.p = 11;
351
356
  setIsSubmitting(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "logix-payment-shift4",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A React component library for integrating Shift4 payments with Logix applications.",
5
5
  "author": "Yusif Atababayev",
6
6
  "license": "ISC",