From a116df09d93f445aefed2d31b835bfc4620e3403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Mich=C3=A1lek?= Date: Thu, 9 Jan 2025 12:55:14 +0100 Subject: [PATCH] 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. --- packages/primevue/src/datepicker/DatePicker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/datepicker/DatePicker.vue b/packages/primevue/src/datepicker/DatePicker.vue index 8e0310afa..9adc8e430 100755 --- a/packages/primevue/src/datepicker/DatePicker.vue +++ b/packages/primevue/src/datepicker/DatePicker.vue @@ -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]; }