@bigbinary/neetoui 5.2.7 → 5.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/formik.cjs.js CHANGED
@@ -14031,23 +14031,23 @@ var Button = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, r
14031
14031
  tooltipProps = _ref$tooltipProps === void 0 ? null : _ref$tooltipProps,
14032
14032
  children = _ref.children,
14033
14033
  otherProps = _objectWithoutProperties$1(_ref, _excluded$s);
14034
- var Parent, elementSpecificProps;
14034
+ var Parent = motion.button;
14035
+ var elementSpecificProps = {
14036
+ type: type
14037
+ };
14035
14038
  var renderLabel = label || children;
14036
- if (to) {
14037
- Parent = reactRouterDom.Link;
14038
- elementSpecificProps = {
14039
- to: to
14040
- };
14041
- } else if (href) {
14042
- Parent = motion.a;
14043
- elementSpecificProps = {
14044
- href: href
14045
- };
14046
- } else {
14047
- Parent = motion.button;
14048
- elementSpecificProps = {
14049
- type: type
14050
- };
14039
+ if (!disabled) {
14040
+ if (to) {
14041
+ Parent = reactRouterDom.Link;
14042
+ elementSpecificProps = {
14043
+ to: to
14044
+ };
14045
+ } else if (href) {
14046
+ Parent = motion.a;
14047
+ elementSpecificProps = {
14048
+ href: href
14049
+ };
14050
+ }
14051
14051
  }
14052
14052
  var handleClick = function handleClick(e) {
14053
14053
  if (!loading && !disabled) {