Skip to content

Commit

Permalink
disable "save" button when "isSaving" is true (#1032)
Browse files Browse the repository at this point in the history
  • Loading branch information
loughlinclaus3 committed Mar 6, 2024
1 parent 8afb0f4 commit ce98410
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -106,6 +106,7 @@ export const MRT_EditActionButtons = <TData extends MRT_RowData>({
aria-label={localization.save}
color="info"
onClick={handleSubmitRow}
disabled={isSaving}
>
{isSaving ? <CircularProgress size={18} /> : <SaveIcon />}
</IconButton>
Expand All @@ -121,6 +122,7 @@ export const MRT_EditActionButtons = <TData extends MRT_RowData>({
onClick={handleSubmitRow}
sx={{ minWidth: '100px' }}
variant="contained"
disabled={isSaving}
>
{isSaving && <CircularProgress color="inherit" size={18} />}
{localization.save}
Expand Down

0 comments on commit ce98410

Please sign in to comment.