Skip to content

Commit

Permalink
[@mantine/dates] DateTimePicker: Remove defaultValue and value pr…
Browse files Browse the repository at this point in the history
…ops from `timeInputProps` types to avoid confusion (#6959)
  • Loading branch information
rtivital committed Oct 17, 2024
1 parent 0b00bf3 commit 25a55cc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export interface DateTimePickerProps
onChange?: (value: DateValue) => void;

/** TimeInput component props */
timeInputProps?: TimeInputProps & { ref?: React.ComponentPropsWithRef<'input'>['ref'] };
timeInputProps?: Omit<TimeInputProps, 'defaultValue' | 'value'> & {
ref?: React.ComponentPropsWithRef<'input'>['ref'];
};

/** Props passed down to the submit button */
submitButtonProps?: ActionIconProps & React.ComponentPropsWithoutRef<'button'>;
Expand Down

0 comments on commit 25a55cc

Please sign in to comment.