From 2c5d25179235c9120a355128cadf568a50b62334 Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Thu, 12 Feb 2026 14:23:47 +1100 Subject: [PATCH] Fix modal close button on samples page The samples page never called setupModal(), so the close button, Escape key, and backdrop click handlers were never registered. Add the missing setupModal() call matching all other pages. --- website/src/scripts/pages/samples.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/src/scripts/pages/samples.ts b/website/src/scripts/pages/samples.ts index 8a896284b..cdc2e7d3a 100644 --- a/website/src/scripts/pages/samples.ts +++ b/website/src/scripts/pages/samples.ts @@ -5,6 +5,7 @@ import { FuzzySearch, type SearchableItem } from "../search"; import { fetchData, escapeHtml } from "../utils"; import { createChoices, getChoicesValues, type Choices } from "../choices"; +import { setupModal } from "../modal"; // Types interface Language { @@ -82,6 +83,7 @@ export async function initSamplesPage(): Promise { search = new FuzzySearch(allRecipes); // Setup UI + setupModal(); setupFilters(); setupSearch(); renderCookbooks();