We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7256b5e commit 70c2666Copy full SHA for 70c2666
packages/ra-ui-materialui/src/button/SaveButton.tsx
@@ -82,8 +82,10 @@ export const SaveButton = <RecordType extends RaRecord = any>(
82
alwaysEnable === false || alwaysEnable === undefined
83
? undefined
84
: !alwaysEnable,
85
- (disabledProp || !isDirty || isValidating || isSubmitting) &&
86
- recordFromLocation == null
+ disabledProp ||
+ (!isDirty && recordFromLocation == null) ||
87
+ isValidating ||
88
+ isSubmitting
89
);
90
91
warning(
0 commit comments