Skip to content

Commit

Permalink
fix: remove autoCapitalize to prevent Firefox warning (#3376)
Browse files Browse the repository at this point in the history
* fix: remove autoCapitalize to prevent firefox warning

* chore: add changeset
  • Loading branch information
ryo-manba committed Jul 6, 2024
1 parent 9806d1c commit 3cdfb2a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/chatty-pianos-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/date-input": patch
---

Removed autoCapitalize to prevent warnings (#3297)
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 3cdfb2a

Please sign in to comment.