Skip to content

Commit 57238bd

Browse files
[pickers] Fix input autoCapitalize value for Firefox compatibility. (#19285)
1 parent ae648b1 commit 57238bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/x-date-pickers/src/internals/hooks/useField/useFieldSectionContentProps.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ export function useFieldSectionContentProps(
190190
role: 'spinbutton',
191191
'data-range-position': (section as FieldRangeSection).dateName || undefined,
192192
spellCheck: isEditable ? false : undefined,
193-
autoCapitalize: isEditable ? 'off' : undefined,
193+
// Firefox hydrates this as `'none`' instead of `'off'`. No problems in chromium with both values.
194+
// For reference https://github.com/mui/mui-x/issues/19012
195+
autoCapitalize: isEditable ? 'none' : undefined,
194196
autoCorrect: isEditable ? 'off' : undefined,
195197
children: section.value || section.placeholder,
196198
inputMode: section.contentType === 'letter' ? 'text' : 'numeric',

0 commit comments

Comments
 (0)