diff --git a/.changeset/chatty-pianos-run.md b/.changeset/chatty-pianos-run.md new file mode 100644 index 0000000000..e3071f6437 --- /dev/null +++ b/.changeset/chatty-pianos-run.md @@ -0,0 +1,5 @@ +--- +"@nextui-org/date-input": patch +--- + +Removed autoCapitalize to prevent warnings (#3297) diff --git a/packages/components/date-input/src/date-input-segment.tsx b/packages/components/date-input/src/date-input-segment.tsx index ddb153c018..9b4bbba156 100644 --- a/packages/components/date-input/src/date-input-segment.tsx +++ b/packages/components/date-input/src/date-input-segment.tsx @@ -25,6 +25,11 @@ export const DateInputSegment: React.FC = ({ let {segmentProps} = useDateSegment(segment, state, ref); + // @ts-expect-error autoCapitalize is not a valid prop + // Removing autoCapitalize as it causes bugs in Firefox. + // See: https://github.com/adobe/react-spectrum/issues/5599 + delete segmentProps.autoCapitalize; + return (