DateTimePicker : add disabled property

master
Tal Leibman 5 years ago committed by Tom Hacohen
parent 6446777c79
commit e54e24d8c1

@ -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

Loading…
Cancel
Save