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 fbc8541 commit 3ff5554Copy full SHA for 3ff5554
packages/ra-ui-materialui/src/input/DateInput.tsx
@@ -133,7 +133,7 @@ export const DateInput = ({
133
(localInputRef.current.valueAsDate != null &&
134
!isNaN(new Date(localInputRef.current.valueAsDate).getTime()));
135
136
- if (isNewValueValid) {
+ if (isNewValueValid && field.value !== newValue) {
137
field.onChange(newValue ?? '');
138
}
139
0 commit comments