mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix: remove autoCapitalize to prevent Firefox warning (#3376)
* fix: remove autoCapitalize to prevent firefox warning * chore: add changeset
This commit is contained in:
parent
9806d1c6c0
commit
3cdfb2afca
5
.changeset/chatty-pianos-run.md
Normal file
5
.changeset/chatty-pianos-run.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@nextui-org/date-input": patch
|
||||
---
|
||||
|
||||
Removed autoCapitalize to prevent warnings (#3297)
|
||||
@ -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)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user