Hello all!
I am testing out live view, and have a button as follows:
<%= link “DELETE” to: “#”, phx_click: “delete_row”, phx_value: row.id, data: [confirm: “Are you sure?”] %>
However, live view ignores the confirm alert and and the code behind “delete_row” runs every time causing the row to, well, delete! I think I understand why this is happening, but has anyone found a way to make the native confirm alert work with phx_click?






















