Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
Bump deps and disable when submitting (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
qw-in authored Aug 27, 2019
1 parent ad3e583 commit ab479eb
Show file tree
Hide file tree
Showing 5 changed files with 402 additions and 124 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,22 @@
"react": ">=16"
},
"devDependencies": {
"@satel/eslint-config-ts-react": "1.2.1",
"@shopify/polaris": "3.21.0",
"@testing-library/dom": "6.0.0",
"@testing-library/react": "9.1.0",
"@testing-library/user-event": "4.2.4",
"@types/jest": "24.0.17",
"@types/react": "16.9.1",
"@types/react-dom": "16.8.5",
"auto-changelog": "1.14.1",
"@satel/eslint-config-ts-react": "2.0.2",
"@shopify/polaris": "3.21.1",
"@testing-library/dom": "6.1.0",
"@testing-library/react": "9.1.3",
"@testing-library/user-event": "6.0.0",
"@types/jest": "24.0.18",
"@types/react": "16.9.2",
"@types/react-dom": "16.9.0",
"auto-changelog": "1.15.0",
"env-cmd": "9.0.3",
"eslint": "5.16.0",
"eslint": "6.2.2",
"formik": "1.5.8",
"react": "16.9.0",
"react-dom": "16.9.0",
"release-it": "12.3.5",
"tsdx": "0.7.2",
"tsdx": "0.9.0",
"tslib": "1.10.0",
"typescript": "3.5.3"
}
Expand Down
3 changes: 2 additions & 1 deletion src/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function CheckboxField<V = any>(props: CheckboxProps<V>) {
name={name}
render={({
field,
form: { setFieldValue, setFieldError, errors, touched },
form: { setFieldValue, setFieldError, errors, touched, isSubmitting },
}: FieldProps) => {
let error;
try {
Expand All @@ -53,6 +53,7 @@ function CheckboxField<V = any>(props: CheckboxProps<V>) {

return (
<PolarisCheckbox
disabled={isSubmitting}
{...polarisProps}
id={name}
checked={decode ? decode(field.value) : field.value}
Expand Down
3 changes: 2 additions & 1 deletion src/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function SelectField<V = any>(props: SelectProps<V>) {
name={name}
render={({
field,
form: { setFieldValue, setFieldError, errors, touched },
form: { setFieldValue, setFieldError, errors, touched, isSubmitting },
}: FieldProps) => {
let error;
try {
Expand All @@ -53,6 +53,7 @@ function SelectField<V = any>(props: SelectProps<V>) {

return (
<PolarisSelect
disabled={isSubmitting}
{...polarisProps}
id={name}
value={decode ? decode(field.value) : field.value}
Expand Down
3 changes: 2 additions & 1 deletion src/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function TextField<V = any>(props: TextFieldProps<V>) {
name={name}
render={({
field,
form: { setFieldValue, setFieldError, errors, touched },
form: { setFieldValue, setFieldError, errors, touched, isSubmitting },
}: FieldProps) => {
let error;
try {
Expand All @@ -53,6 +53,7 @@ function TextField<V = any>(props: TextFieldProps<V>) {

return (
<PolarisTextField
disabled={isSubmitting}
{...polarisProps}
id={name}
value={decode ? decode(field.value) : field.value}
Expand Down
Loading

0 comments on commit ab479eb

Please sign in to comment.