Fix: tambah final check untuk dateInput di event.html juga

This commit is contained in:
mwpn
2025-12-19 05:32:13 +07:00
parent 7180371316
commit 16d4b83cf7

View File

@@ -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);
}
});
</script>
</body>