Skip to content

Commit

Permalink
fix: remove autoCapitalize to prevent firefox warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ryo-manba committed Jun 30, 2024
1 parent 9daef56 commit 100b267
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/components/date-input/src/date-input-segment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand Down

0 comments on commit 100b267

Please sign in to comment.