fix: remove autoCapitalize to prevent Firefox warning (#3376)

* fix: remove autoCapitalize to prevent firefox warning

* chore: add changeset
This commit is contained in:
Ryo Matsukawa 2024-07-06 16:17:07 +09:00 committed by GitHub
parent 9806d1c6c0
commit 3cdfb2afca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"@nextui-org/date-input": patch
---
Removed autoCapitalize to prevent warnings (#3297)

View File

@ -25,6 +25,11 @@ export const DateInputSegment: React.FC<DateInputSegmentProps> = ({
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 (
<div
{...mergeProps(segmentProps, otherProps)}