Made event handlers attach after page load
Some checks failed
Build and Test - Staging / determine_version (pull_request) Successful in 29s
Playwright Tests / test (pull_request) Has been cancelled
Build and Test - Staging / test (pull_request) Has been cancelled
Build and Test - Staging / deploy_staging (pull_request) Has been cancelled
Build and Test - Staging / build_and_push (pull_request) Has been cancelled

This commit is contained in:
2025-11-07 19:50:46 -08:00
parent f91be707d9
commit c5dde92023
2 changed files with 4 additions and 2 deletions

View File

@@ -112,7 +112,7 @@ const limitByWidthClasses = "max-h-fit";
if (this._slide && this._items.length > 0) this._carousel.cycle(); if (this._slide && this._items.length > 0) this._carousel.cycle();
this._attachHandlers() window.addEventListener("load", this._attachHandlers);
} }

View File

@@ -39,7 +39,9 @@ const timeline: timelineEntry[] = Astro.props.timeline || [];
constructor() { constructor() {
super(); super();
this._eventElements = this._getNodeElements(); this._eventElements = this._getNodeElements();
this._paintLeaderLines();
window.addEventListener("load", this._paintLeaderLines);
} }