From 16d4b83cf7ad6b746009d28c46227d452521aeba Mon Sep 17 00:00:00 2001 From: mwpn Date: Fri, 19 Dec 2025 05:32:13 +0700 Subject: [PATCH] Fix: tambah final check untuk dateInput di event.html juga --- public/dashboard/event.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/dashboard/event.html b/public/dashboard/event.html index 5d5c44b..f7f41ff 100644 --- a/public/dashboard/event.html +++ b/public/dashboard/event.html @@ -894,6 +894,14 @@ showVideoPanel(state.locationCode); await loadEvents(); + + // FINAL CHECK: Pastikan dateInput masih hari ini setelah semua async operations + const finalDateInput = document.getElementById('filter-date'); + if (finalDateInput && finalDateInput.value !== state.date) { + console.warn('[Events] Date input value changed after async operations, resetting to:', state.date); + finalDateInput.value = state.date; + finalDateInput.setAttribute('value', state.date); + } });