From b1cdb3be87fb4e3a9ad719314cdd2989ac29ce4e Mon Sep 17 00:00:00 2001 From: scottkiener-at-safelite Date: Fri, 29 May 2026 12:17:47 -0400 Subject: [PATCH] Fix initialization logic --- src/layouts/scheduling/date-picker/date-picker.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/layouts/scheduling/date-picker/date-picker.vue b/src/layouts/scheduling/date-picker/date-picker.vue index c3b9afdc5..66dbe997a 100644 --- a/src/layouts/scheduling/date-picker/date-picker.vue +++ b/src/layouts/scheduling/date-picker/date-picker.vue @@ -150,7 +150,7 @@ export default { if (!newDates.length) return; if (!this.initialized && !this.modelValue) { - this.initializeWindow(); + this.initialize(); return; } // Pending auto select is set when the user is at the end of the dates and the next page of dates is loaded. @@ -170,8 +170,9 @@ export default { const index = this.allDates.findIndex((d) => d.value === this.modelValue); if (index !== -1) this.windowStart = this.getWindowStartFromIndex(index); } else { - this.initializeWindow(); + this.initialize(); } + this.initialized = true; }, beforeUnmount() { window.removeEventListener("resize", this.updateWindowSize); @@ -212,7 +213,7 @@ export default { const first = this.visibleDates.find((d) => d.isAvailable); this.$emit("update:modelValue", first ? first.value : null); }, - initializeWindow() { + initialize() { this.initialized = true; if (this.modelValue !== null) return;