@popmenu/admin-ui 0.64.0 → 0.66.0

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/build/index.js CHANGED
@@ -1456,7 +1456,9 @@ var augmentButtonProps = function (internalProps, externalProps, setStepCursor,
1456
1456
  setStepCursor(stepCursor + incrementor);
1457
1457
  return [3 /*break*/, 3];
1458
1458
  case 2:
1459
- internalProps.onClick();
1459
+ if (typeof internalProps.onClick === 'function') {
1460
+ internalProps.onClick();
1461
+ }
1460
1462
  _a.label = 3;
1461
1463
  case 3: return [2 /*return*/];
1462
1464
  }