Skip to content

Commit

Permalink
Make sort buttons not submit delete form when JS fails
Browse files Browse the repository at this point in the history
  • Loading branch information
wmnnd committed Feb 8, 2024
1 parent d4854a6 commit 99d1001
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/keila_web/views/contact_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ defmodule KeilaWeb.ContactView do
<button
data-sort-key={@key}
data-sort-order={if active? and @current_order == 1, do: "-1", else: "1"}
type="button"
class={
"w-6 px-1 rounded hover:bg-gray-600" <>
((active? && " bg-gray-600 hover:bg-gray-700") || "")
Expand Down

0 comments on commit 99d1001

Please sign in to comment.