From df8a416e695133cc3e3ae0002364fff4cecac8f7 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Thu, 9 Jan 2025 14:57:58 +0300 Subject: [PATCH] Fixed #7062 - Calendar | Date Picker | Cannot read properties of undefined ( reading 'focus') --- packages/primevue/src/datepicker/DatePicker.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/primevue/src/datepicker/DatePicker.vue b/packages/primevue/src/datepicker/DatePicker.vue index 8e0310afa..551a1ca69 100755 --- a/packages/primevue/src/datepicker/DatePicker.vue +++ b/packages/primevue/src/datepicker/DatePicker.vue @@ -2555,6 +2555,9 @@ export default { if (focusableElements[i].tagName === 'SPAN') { spanIndex = i; break; + } else if (focusableElements[i].tagName === 'BUTTON') { + spanIndex = i; + break; } }