Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

help: Remove unnecessary onClick event listener.

afeefuddinc138082eb3fc
diff --git a/web/src/portico/help.js b/web/src/portico/help.js
index 1abe883aa51..391fb3d199d 100644
--- a/web/src/portico/help.js
+++ b/web/src/portico/help.js
@@ -59,11 +59,6 @@ function add_copy_to_clipboard_element($codehilite) {
placement: "top",
});
- // Copy code on button click
- $copy_button.on("click", () => {
- clipboard.onClick({currentTarget: $copy_button[0]});
- });
-
// Show "Copied!" tooltip when code is successfully copied
clipboard.on("success", () => {
tooltip_copy.hide();