From 1caa0c954ec34ec9bba287350ff8811e8cf6937c Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Tue, 9 Sep 2025 16:52:54 -0300 Subject: [PATCH] FIX: initialDate --- app/resources/views/ventas/reservations/modal/add.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/resources/views/ventas/reservations/modal/add.blade.php b/app/resources/views/ventas/reservations/modal/add.blade.php index c36d383..4c7fcf2 100644 --- a/app/resources/views/ventas/reservations/modal/add.blade.php +++ b/app/resources/views/ventas/reservations/modal/add.blade.php @@ -719,7 +719,7 @@ return false }) const cdo = structuredClone(calendar_date_options) - cdo['startDate'] = new Date() + cdo['initialDate'] = new Date() cdo['maxDate'] = new Date() this.components.$date.calendar(cdo) const rutInput = this.components.rut.querySelector('input') @@ -741,7 +741,7 @@ }) }) const cdo2 = structuredClone(cdo) - cdo2['startDate'].setFullYear(cdo2['startDate'].getFullYear() - 18) + cdo2['initialDate'].setFullYear(cdo2['initialDate'].getFullYear() - 18) cdo2['maxDate'].setFullYear(cdo2['maxDate'].getFullYear() - 18) this.components.$birthdate.calendar(cdo2) this.components.$region.dropdown({