We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abd1bba commit 8209369Copy full SHA for 8209369
src/PickerInput/Selector/hooks/useInputProps.ts
@@ -86,7 +86,7 @@ export default function useInputProps<DateType extends object = any>(
86
const firstFormat = format[0];
87
88
const getText = React.useCallback(
89
- (date: DateType, index: number) =>
+ (date: DateType, index?: number) =>
90
formatValue(date, { locale, index, format: firstFormat, generateConfig }),
91
[locale, generateConfig, firstFormat],
92
);
0 commit comments