From ce73fa1147f11b0cdf2154f37091041effb8e543 Mon Sep 17 00:00:00 2001 From: Gururajj77 Date: Mon, 6 May 2024 16:35:56 +0530 Subject: [PATCH] fix(timepicker): stopped disabled prop overriding the child item --- packages/react/src/components/TimePicker/TimePicker.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/components/TimePicker/TimePicker.tsx b/packages/react/src/components/TimePicker/TimePicker.tsx index 04f9cb5958da..9b5d5a5958bd 100644 --- a/packages/react/src/components/TimePicker/TimePicker.tsx +++ b/packages/react/src/components/TimePicker/TimePicker.tsx @@ -255,7 +255,7 @@ const TimePicker: TimePickerComponent = React.forwardRef< if (item) { return React.cloneElement(item, { ...item.props, - disabled: disabled, + disabled: item.props.disabled ?? disabled, readOnly: readOnly, ...readOnlyEventHandlers, });