formik-material-ui
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -136,3 +136,5 @@ import { Component, createElement } from 'react'; | ||
isSubmitting = _ref$form.isSubmitting, | ||
props = objectWithoutProperties(_ref, ['field', 'form']); | ||
_ref$disabled = _ref.disabled, | ||
disabled = _ref$disabled === undefined ? false : _ref$disabled, | ||
props = objectWithoutProperties(_ref, ['field', 'form', 'disabled']); | ||
var name = field.name; | ||
@@ -144,3 +146,3 @@ | ||
helperText: errors[name] ? errors[name] : props.helperText, | ||
disabled: isSubmitting | ||
disabled: isSubmitting || disabled | ||
}); | ||
@@ -152,5 +154,7 @@ }); | ||
isSubmitting = _ref.form.isSubmitting, | ||
props = objectWithoutProperties(_ref, ['field', 'form']); | ||
_ref$disabled = _ref.disabled, | ||
disabled = _ref$disabled === undefined ? false : _ref$disabled, | ||
props = objectWithoutProperties(_ref, ['field', 'form', 'disabled']); | ||
return _extends({ | ||
disabled: isSubmitting | ||
disabled: isSubmitting || disabled | ||
}, props, field, { | ||
@@ -165,5 +169,7 @@ // TODO: is this the correct way? | ||
isSubmitting = _ref.form.isSubmitting, | ||
props = objectWithoutProperties(_ref, ['field', 'form']); | ||
_ref$disabled = _ref.disabled, | ||
disabled = _ref$disabled === undefined ? false : _ref$disabled, | ||
props = objectWithoutProperties(_ref, ['field', 'form', 'disabled']); | ||
return _extends({ | ||
disabled: isSubmitting | ||
disabled: isSubmitting || disabled | ||
}, props, field, { | ||
@@ -178,5 +184,7 @@ // TODO: is this the correct way? | ||
isSubmitting = _ref.form.isSubmitting, | ||
props = objectWithoutProperties(_ref, ['field', 'form']); | ||
_ref$disabled = _ref.disabled, | ||
disabled = _ref$disabled === undefined ? false : _ref$disabled, | ||
props = objectWithoutProperties(_ref, ['field', 'form', 'disabled']); | ||
return _extends({ | ||
disabled: isSubmitting | ||
disabled: isSubmitting || disabled | ||
}, props, field); | ||
@@ -183,0 +191,0 @@ }); |
@@ -142,3 +142,5 @@ 'use strict'; | ||
isSubmitting = _ref$form.isSubmitting, | ||
props = objectWithoutProperties(_ref, ['field', 'form']); | ||
_ref$disabled = _ref.disabled, | ||
disabled = _ref$disabled === undefined ? false : _ref$disabled, | ||
props = objectWithoutProperties(_ref, ['field', 'form', 'disabled']); | ||
var name = field.name; | ||
@@ -150,3 +152,3 @@ | ||
helperText: errors[name] ? errors[name] : props.helperText, | ||
disabled: isSubmitting | ||
disabled: isSubmitting || disabled | ||
}); | ||
@@ -158,5 +160,7 @@ }); | ||
isSubmitting = _ref.form.isSubmitting, | ||
props = objectWithoutProperties(_ref, ['field', 'form']); | ||
_ref$disabled = _ref.disabled, | ||
disabled = _ref$disabled === undefined ? false : _ref$disabled, | ||
props = objectWithoutProperties(_ref, ['field', 'form', 'disabled']); | ||
return _extends({ | ||
disabled: isSubmitting | ||
disabled: isSubmitting || disabled | ||
}, props, field, { | ||
@@ -171,5 +175,7 @@ // TODO: is this the correct way? | ||
isSubmitting = _ref.form.isSubmitting, | ||
props = objectWithoutProperties(_ref, ['field', 'form']); | ||
_ref$disabled = _ref.disabled, | ||
disabled = _ref$disabled === undefined ? false : _ref$disabled, | ||
props = objectWithoutProperties(_ref, ['field', 'form', 'disabled']); | ||
return _extends({ | ||
disabled: isSubmitting | ||
disabled: isSubmitting || disabled | ||
}, props, field, { | ||
@@ -184,5 +190,7 @@ // TODO: is this the correct way? | ||
isSubmitting = _ref.form.isSubmitting, | ||
props = objectWithoutProperties(_ref, ['field', 'form']); | ||
_ref$disabled = _ref.disabled, | ||
disabled = _ref$disabled === undefined ? false : _ref$disabled, | ||
props = objectWithoutProperties(_ref, ['field', 'form', 'disabled']); | ||
return _extends({ | ||
disabled: isSubmitting | ||
disabled: isSubmitting || disabled | ||
}, props, field); | ||
@@ -189,0 +197,0 @@ }); |
{ | ||
"name": "formik-material-ui", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"dependencies": {}, | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26151
330