We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents da2996e + 7234bd6 commit b4dee2fCopy full SHA for b4dee2f
packages/ra-ui-materialui/src/input/ArrayInput/ArrayInput.tsx
@@ -1,6 +1,7 @@
1
import * as React from 'react';
2
import { cloneElement, Children, ReactElement } from 'react';
3
import PropTypes from 'prop-types';
4
+import isEqual from 'lodash/isEqual';
5
import {
6
isRequired,
7
FieldTitle,
@@ -83,6 +84,8 @@ export const ArrayInput = (props: ArrayInputProps) => {
83
84
initialValue: defaultValue,
85
validate: sanitizedValidate,
86
...rest,
87
+ isEqual: (allPreviousValues, allNewValues) =>
88
+ isEqual(allPreviousValues, allNewValues),
89
});
90
91
if (loading) {
0 commit comments