Skip to content

Commit

Permalink
Require data-to and data-method attributes together
Browse files Browse the repository at this point in the history
  • Loading branch information
tarzan committed Dec 21, 2023
1 parent 64431ff commit 536f31b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion priv/static/phoenix_html.js
Expand Up @@ -65,7 +65,7 @@
return false;
}

if (element.getAttribute("data-method")) {
if (element.getAttribute("data-method") && element.getAttribute("data-to")) {
handleClick(element, e.metaKey || e.shiftKey);
e.preventDefault();
return false;
Expand Down

0 comments on commit 536f31b

Please sign in to comment.