@bigbinary/neetoui 5.2.6 → 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) {
@@ -25550,11 +25550,13 @@ var SelectField = /*#__PURE__*/React.forwardRef(function (props, ref) {
25550
25550
  name: field.name,
25551
25551
  options: options,
25552
25552
  value: either(isNil, isEmpty)(field.value) ? null : buildValueObj(field.value, options),
25553
- onBlur: function onBlur() {
25554
- return setTouched(true);
25555
- },
25556
25553
  onChange: function onChange(value) {
25557
25554
  return setValue(value);
25555
+ },
25556
+ onBlur: function onBlur() {
25557
+ return React.startTransition(function () {
25558
+ setTouched(true);
25559
+ });
25558
25560
  }
25559
25561
  }, otherProps, {
25560
25562
  onKeyDown: function onKeyDown(event) {