mycode
<DatePicker
style={{width: 170}}
date={this.state.date1}
mode="date"
placeholder="select date"
format="YYYY-MM-DD"
maxDate="2020-01-01"
minDate="2010-01-01"
confirmBtnText="Confirm"
cancelBtnText="Cancel"
customStyles={{
dateIcon: {
position: 'absolute',
left: 0,
top: 4,
marginLeft: 0
},
dateInput: {
marginLeft: 36
}
// ... You can check the source to find the other keys.
}}
onDateChange={(date) => {this.setState({date1: date})}}
/>
max and min date of this component are defined but the date between maxDate="2020-01-01" minDate="2010-01-01" are disappear like the above image:
other date that out maxDate="2020-01-01" minDate="2010-01-01" of are still appear
can someone tell me how to solve this problem