From 0b09c8e9b2e11335812f119b6424e892f3a6aac0 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Tue, 21 Apr 2026 01:21:38 +0200 Subject: [PATCH] fix: add type="button" to watchlist dropdown buttons --- web/components/watchlist/dropdown.templ | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/components/watchlist/dropdown.templ b/web/components/watchlist/dropdown.templ index 8dca919..22a2a5d 100644 --- a/web/components/watchlist/dropdown.templ +++ b/web/components/watchlist/dropdown.templ @@ -17,6 +17,7 @@ templ WatchlistDropdown( onclick="toggleDropdown()" data-dropdown-trigger > + type="button" if currentStatus != "" { { formatStatus(currentStatus) } } else { @@ -41,6 +42,7 @@ templ WatchlistDropdown( hx-delete={ string(templ.URL(fmt.Sprintf("/api/watchlist/%d", animeID))) } hx-target="#watchlist-dropdown" hx-swap="outerHTML swap:150ms" + type="button" > Remove from list