Skip to content

Commit 70c2666

Browse files
committed
Apply review suggestion
1 parent 7256b5e commit 70c2666

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/ra-ui-materialui/src/button/SaveButton.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ export const SaveButton = <RecordType extends RaRecord = any>(
8282
alwaysEnable === false || alwaysEnable === undefined
8383
? undefined
8484
: !alwaysEnable,
85-
(disabledProp || !isDirty || isValidating || isSubmitting) &&
86-
recordFromLocation == null
85+
disabledProp ||
86+
(!isDirty && recordFromLocation == null) ||
87+
isValidating ||
88+
isSubmitting
8789
);
8890

8991
warning(

0 commit comments

Comments
 (0)