Avoid selection of invalid dates
This commit is contained in:
+4
@@ -107,6 +107,10 @@
|
||||
if (this.from && this.to) {
|
||||
this.picker.setDate([ new Date(this.from), new Date(this.to) ]);
|
||||
}
|
||||
if (this.minDate && this.maxDate) {
|
||||
this.picker.set('minDate', new Date(this.minDate));
|
||||
this.picker.set('maxDate', new Date(this.maxDate));
|
||||
}
|
||||
});
|
||||
EventBus.$on('filterSettingsReset', () => {
|
||||
this.reset();
|
||||
|
||||
Reference in New Issue
Block a user