fix(date-picker): inline used together with range and time options

When using selectionMode = range, showTime and inline options
together the component would not allow the time of the second
date to be edited.

This seems like a bug to me rather than a intended
behavior of the component.

If it is for some reason intended, it should be documented
that this won't indeed work.
pull/7066/head
Jakub Michálek 2025-01-09 12:55:14 +01:00
parent 813c516727
commit a116df09d9
1 changed files with 1 additions and 1 deletions

View File

@ -2756,7 +2756,7 @@ export default {
if (propValue && Array.isArray(propValue)) {
if (this.isRangeSelection()) {
propValue = this.inline ? propValue[0] : propValue[1] || propValue[0];
propValue = propValue[1] || propValue[0];
} else if (this.isMultipleSelection()) {
propValue = propValue[propValue.length - 1];
}