달력제약조건수정
This commit is contained in:
@@ -53,7 +53,7 @@ const NiceCalendar = ({
|
|||||||
};
|
};
|
||||||
const setMinMaxValueDate = () => {
|
const setMinMaxValueDate = () => {
|
||||||
if(calendarType === CalendarType.Start){
|
if(calendarType === CalendarType.Start){
|
||||||
setMinDate(propMinDate || undefined);
|
setMinDate(propMinDate || moment(endDate, 'YYYY.MM.DD').subtract(1, 'month').toDate());
|
||||||
if(!!endDate){
|
if(!!endDate){
|
||||||
setMaxDate(moment(endDate, 'YYYY.MM.DD').toDate());
|
setMaxDate(moment(endDate, 'YYYY.MM.DD').toDate());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user