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.
This commit is contained in:
Aaron Powell
2026-02-12 14:23:47 +11:00
parent a67f8dae40
commit 2c5d251792

View File

@@ -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<void> {
search = new FuzzySearch(allRecipes);
// Setup UI
setupModal();
setupFilters();
setupSearch();
renderCookbooks();