@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.js CHANGED
@@ -14004,23 +14004,23 @@ var Button = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
14004
14004
  tooltipProps = _ref$tooltipProps === void 0 ? null : _ref$tooltipProps,
14005
14005
  children = _ref.children,
14006
14006
  otherProps = _objectWithoutProperties$1(_ref, _excluded$s);
14007
- var Parent, elementSpecificProps;
14007
+ var Parent = motion.button;
14008
+ var elementSpecificProps = {
14009
+ type: type
14010
+ };
14008
14011
  var renderLabel = label || children;
14009
- if (to) {
14010
- Parent = Link;
14011
- elementSpecificProps = {
14012
- to: to
14013
- };
14014
- } else if (href) {
14015
- Parent = motion.a;
14016
- elementSpecificProps = {
14017
- href: href
14018
- };
14019
- } else {
14020
- Parent = motion.button;
14021
- elementSpecificProps = {
14022
- type: type
14023
- };
14012
+ if (!disabled) {
14013
+ if (to) {
14014
+ Parent = Link;
14015
+ elementSpecificProps = {
14016
+ to: to
14017
+ };
14018
+ } else if (href) {
14019
+ Parent = motion.a;
14020
+ elementSpecificProps = {
14021
+ href: href
14022
+ };
14023
+ }
14024
14024
  }
14025
14025
  var handleClick = function handleClick(e) {
14026
14026
  if (!loading && !disabled) {