From e54e24d8c19117701a6ea811c32b3e8b48b895b6 Mon Sep 17 00:00:00 2001 From: Tal Leibman Date: Sat, 4 Jan 2020 17:32:03 +0200 Subject: [PATCH] DateTimePicker : add disabled property --- src/widgets/DateTimePicker.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widgets/DateTimePicker.tsx b/src/widgets/DateTimePicker.tsx index 3b1fc7e..cd2d2fc 100644 --- a/src/widgets/DateTimePicker.tsx +++ b/src/widgets/DateTimePicker.tsx @@ -9,6 +9,7 @@ interface PropsType { placeholder: string; value?: Date; dateOnly?: boolean; + disabled?: boolean; onChange: (date?: Date) => void; } @@ -22,6 +23,7 @@ class DateTimePicker extends React.PureComponent { const inputProps = { placeholder: this.props.placeholder, readOnly: true, + disabled: this.props.disabled, }; return (