`loadAll` captured `weekStart` in a stale closure when called via `setTimeout`. Selecting a date would show the correct value in the input but load data for the previously-shown week. Replaced all deferred `setTimeout(() => loadAll(true), 0)` calls with direct `loadAll(true, newDate)` calls, passing the updated date as an explicit argument. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
14 lines
583 B
HTML
14 lines
583 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=1280" />
|
|
<meta name="theme-color" content="#2d6a4f" />
|
|
<title>HK Planner</title>
|
|
<script type="module" crossorigin src="/hk-planner/assets/index-pKsveas1.js"></script>
|
|
<link rel="stylesheet" crossorigin href="/hk-planner/assets/index-BY6qKqNq.css">
|
|
<link rel="manifest" href="/hk-planner/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/hk-planner/registerSW.js"></script></head>
|
|
<body>
|
|
<div id="root"></div>
|
|
</body>
|
|
</html>
|