From 7e59c79c14e49cb6b1244a4397217cfc13f5c0e6 Mon Sep 17 00:00:00 2001 From: rajeevdodda Date: Wed, 27 Sep 2023 16:57:10 +0530 Subject: [PATCH] Updated TimeInput maxTime and minTime props in DateTimePicker Component. --- .../src/components/DateTimePicker/DateTimePicker.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mantine-dates/src/components/DateTimePicker/DateTimePicker.tsx b/src/mantine-dates/src/components/DateTimePicker/DateTimePicker.tsx index 5e626ae6897..8856c506994 100644 --- a/src/mantine-dates/src/components/DateTimePicker/DateTimePicker.tsx +++ b/src/mantine-dates/src/components/DateTimePicker/DateTimePicker.tsx @@ -248,6 +248,8 @@ export const DateTimePicker = factory((_props, ref) => { onKeyDown={handleTimeInputKeyDown} size={size} data-mantine-stop-propagation={__stopPropagation || undefined} + minTime={formatTime(calendarProps.minDate)} + maxTime={formatTime(calendarProps.maxDate)} />