Merge pull request #683 from gserb/fix/datepickerSelectionRange
fix(datepicker): selection of dates outside of min/max range is permitted
This commit is contained in:
commit
86fdc4dca2
1 changed files with 4 additions and 4 deletions
|
|
@ -333,14 +333,14 @@ export class LionInputDatepicker extends ScopedElementsMixin(OverlayMixin(LionIn
|
||||||
// On every validator change, synchronize disabled dates: this means
|
// On every validator change, synchronize disabled dates: this means
|
||||||
// we need to extract minDate, maxDate, minMaxDate and disabledDates validators
|
// we need to extract minDate, maxDate, minMaxDate and disabledDates validators
|
||||||
validators.forEach(v => {
|
validators.forEach(v => {
|
||||||
if (v.constructor.name === 'MinDate') {
|
if (v.constructor.validatorName === 'MinDate') {
|
||||||
this.__calendarMinDate = v.param;
|
this.__calendarMinDate = v.param;
|
||||||
} else if (v.constructor.name === 'MaxDate') {
|
} else if (v.constructor.validatorName === 'MaxDate') {
|
||||||
this.__calendarMaxDate = v.param;
|
this.__calendarMaxDate = v.param;
|
||||||
} else if (v.constructor.name === 'MinMaxDate') {
|
} else if (v.constructor.validatorName === 'MinMaxDate') {
|
||||||
this.__calendarMinDate = v.param.min;
|
this.__calendarMinDate = v.param.min;
|
||||||
this.__calendarMaxDate = v.param.max;
|
this.__calendarMaxDate = v.param.max;
|
||||||
} else if (v.constructor.name === 'IsDateDisabled') {
|
} else if (v.constructor.validatorName === 'IsDateDisabled') {
|
||||||
this.__calendarDisableDates = v.param;
|
this.__calendarDisableDates = v.param;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue