fix: add type="button" to watchlist dropdown buttons

This commit is contained in:
2026-04-21 01:21:38 +02:00
parent 9a137be80a
commit 0b09c8e9b2

View File

@@ -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
</button>