Skip to content

Commit 2c5d251

Browse files
committed
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.
1 parent a67f8da commit 2c5d251

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

website/src/scripts/pages/samples.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import { FuzzySearch, type SearchableItem } from "../search";
66
import { fetchData, escapeHtml } from "../utils";
77
import { createChoices, getChoicesValues, type Choices } from "../choices";
8+
import { setupModal } from "../modal";
89

910
// Types
1011
interface Language {
@@ -82,6 +83,7 @@ export async function initSamplesPage(): Promise<void> {
8283
search = new FuzzySearch(allRecipes);
8384

8485
// Setup UI
86+
setupModal();
8587
setupFilters();
8688
setupSearch();
8789
renderCookbooks();

0 commit comments

Comments
 (0)