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; placeholder: string;
value?: Date; value?: Date;
dateOnly?: boolean; dateOnly?: boolean;
disabled?: boolean;
onChange: (date?: Date) => void; onChange: (date?: Date) => void;
} }
@ -22,6 +23,7 @@ class DateTimePicker extends React.PureComponent<PropsType> {
const inputProps = { const inputProps = {
placeholder: this.props.placeholder, placeholder: this.props.placeholder,
readOnly: true, readOnly: true,
disabled: this.props.disabled,
}; };
return ( return (
<Datetime <Datetime

Loading…
Cancel
Save