diff --git a/public/dashboard/js/dashboard.js b/public/dashboard/js/dashboard.js index b35b1d5..badf090 100644 --- a/public/dashboard/js/dashboard.js +++ b/public/dashboard/js/dashboard.js @@ -831,6 +831,14 @@ document.addEventListener('DOMContentLoaded', async () => { showVideoPanel(state.locationCode); await loadSummaryAndCharts(); + + // 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('[Dashboard] Date input value changed after async operations, resetting to:', state.date); + finalDateInput.value = state.date; + finalDateInput.setAttribute('value', state.date); + } });