DateTimePicker : add disabled property

master
Tal Leibman 2020-01-04 17:32:03 +02:00 committed by Tom Hacohen
parent 6446777c79
commit e54e24d8c1
1 changed files with 2 additions and 0 deletions

View File

@ -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<PropsType> {
const inputProps = {
placeholder: this.props.placeholder,
readOnly: true,
disabled: this.props.disabled,
};
return (
<Datetime