From 25a55cca32f278758ecbb5655138aef5192ae09d Mon Sep 17 00:00:00 2001 From: Vitaly Rtishchev Date: Thu, 17 Oct 2024 10:50:42 +0400 Subject: [PATCH] [@mantine/dates] DateTimePicker: Remove `defaultValue` and `value` props from `timeInputProps` types to avoid confusion (#6959) --- .../dates/src/components/DateTimePicker/DateTimePicker.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/@mantine/dates/src/components/DateTimePicker/DateTimePicker.tsx b/packages/@mantine/dates/src/components/DateTimePicker/DateTimePicker.tsx index 0947faf8a5c..6d1f45aa6d9 100644 --- a/packages/@mantine/dates/src/components/DateTimePicker/DateTimePicker.tsx +++ b/packages/@mantine/dates/src/components/DateTimePicker/DateTimePicker.tsx @@ -62,7 +62,9 @@ export interface DateTimePickerProps onChange?: (value: DateValue) => void; /** TimeInput component props */ - timeInputProps?: TimeInputProps & { ref?: React.ComponentPropsWithRef<'input'>['ref'] }; + timeInputProps?: Omit & { + ref?: React.ComponentPropsWithRef<'input'>['ref']; + }; /** Props passed down to the submit button */ submitButtonProps?: ActionIconProps & React.ComponentPropsWithoutRef<'button'>;