Skip to content

Commit

Permalink
ele buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
pandrr committed Nov 29, 2024
1 parent 7371b0e commit aa27cbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/client/src/ele.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ class Ele


if (ele.getAttribute("tabindex") == null)ele.setAttribute("tabindex", 0);
ele.addEventListener("click", cb);
ele.addEventListener("keydown", (e) => { if (e.keyCode == 13)cb(); });
ele.addEventListener("click", (e) => { cb(e); });
ele.addEventListener("keydown", (e) => { if (e.keyCode == 13)cb(e); });
}


Expand Down

0 comments on commit aa27cbf

Please sign in to comment.