Fix: tambah final check untuk dateInput di event.html juga
This commit is contained in:
@@ -894,6 +894,14 @@
|
|||||||
showVideoPanel(state.locationCode);
|
showVideoPanel(state.locationCode);
|
||||||
|
|
||||||
await loadEvents();
|
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>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user