fix: add type="button" to watchlist dropdown buttons
This commit is contained in:
@@ -17,6 +17,7 @@ templ WatchlistDropdown(
|
|||||||
onclick="toggleDropdown()"
|
onclick="toggleDropdown()"
|
||||||
data-dropdown-trigger
|
data-dropdown-trigger
|
||||||
>
|
>
|
||||||
|
type="button"
|
||||||
if currentStatus != "" {
|
if currentStatus != "" {
|
||||||
{ formatStatus(currentStatus) }
|
{ formatStatus(currentStatus) }
|
||||||
} else {
|
} else {
|
||||||
@@ -41,6 +42,7 @@ templ WatchlistDropdown(
|
|||||||
hx-delete={ string(templ.URL(fmt.Sprintf("/api/watchlist/%d", animeID))) }
|
hx-delete={ string(templ.URL(fmt.Sprintf("/api/watchlist/%d", animeID))) }
|
||||||
hx-target="#watchlist-dropdown"
|
hx-target="#watchlist-dropdown"
|
||||||
hx-swap="outerHTML swap:150ms"
|
hx-swap="outerHTML swap:150ms"
|
||||||
|
type="button"
|
||||||
>
|
>
|
||||||
Remove from list
|
Remove from list
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user