hi, I get this warning when use the library.
import * as React from 'react';
import { findDOMNode } from 'react-dom';
import { DatePicker } from 'material-ui-pickers';
import * as moment from 'moment';
import { WrappedFieldProps } from 'redux-form';
export namespace DatePickerGroup {
export interface AllProps extends OwnProps, WrappedFieldProps {
}
export interface OwnProps {
id?: string,
label?: string,
className?: string,
shrink?: boolean,
fullWidth?: boolean,
margin?: string,
disabled?: boolean,
readOnly?: boolean
}
export interface State {
}
}
class DatePickerGroup extends React.Component<DatePickerGroup.AllProps, DatePickerGroup.State> {
constructor(props) {
super(props);
}
private inputControl: HTMLInputElement;
handleDateChange = (date: moment.Moment) => {
this.props.input.onChange(date.format("YYYY-MM-DD"));
}
render() {
const {
input, id, label, className, shrink, fullWidth, margin, disabled, readOnly,
meta: { touched, error }
} = this.props
const selectedDate = moment(input.value, "YYYY-MM-DD").isValid() ? moment(input.value, "YYYY-MM-DD") : moment(new Date());
return (
<div>
<DatePicker
format="DD/MM/YYYY"
value={selectedDate}
onChange={this.handleDateChange}
/>
</div>
)
}
}
export default DatePickerGroup;