mirror of
https://github.com/frappe/air-datepicker.git
synced 2026-01-14 11:01:22 +08:00
fixed case when 'multipleDates' and 'range' both set to true
This commit is contained in:
parent
33ba830ccc
commit
3017dad86d
2
dist/js/datepicker.js
vendored
2
dist/js/datepicker.js
vendored
@ -367,7 +367,7 @@ var Datepicker;
|
||||
_this.nav._render()
|
||||
}
|
||||
|
||||
if (opts.multipleDates) {
|
||||
if (opts.multipleDates && !opts.range) { // Set priority to range functionality
|
||||
if (len === opts.multipleDates) return;
|
||||
if (!_this._isSelected(date)) {
|
||||
_this.selectedDates.push(date);
|
||||
|
||||
2
dist/js/datepicker.min.js
vendored
2
dist/js/datepicker.min.js
vendored
File diff suppressed because one or more lines are too long
@ -367,7 +367,7 @@ var Datepicker;
|
||||
_this.nav._render()
|
||||
}
|
||||
|
||||
if (opts.multipleDates) {
|
||||
if (opts.multipleDates && !opts.range) { // Set priority to range functionality
|
||||
if (len === opts.multipleDates) return;
|
||||
if (!_this._isSelected(date)) {
|
||||
_this.selectedDates.push(date);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user