Refine styling and scripts

This commit is contained in:
2024-04-05 02:20:12 +02:00
parent 175ccf6eae
commit ceea65cfa8
2 changed files with 2 additions and 1 deletions

View File

@@ -33,7 +33,7 @@
<%= javascript_tag do %>
function processKey(event) {
if (event.key == "Escape") {
event.target.closest("tr").querySelector("a[name=cancel]").click();
event.currentTarget.querySelector("a[name=cancel]").click();
}
}