Skip to content

Commit

Permalink
fix(timepicker): stopped disabled prop overriding the child item (#16324
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Gururajj77 authored May 7, 2024
1 parent 23d0a08 commit 02588c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/TimePicker/TimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 02588c6

Please sign in to comment.