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.

tippyjs: Use `one` instead of `on` to define event handlers.

Aman Agrawal7c6fc5dff769
diff --git a/static/js/tippyjs.js b/static/js/tippyjs.js
index 9fce9ddec35..90c22e6385f 100644
--- a/static/js/tippyjs.js
+++ b/static/js/tippyjs.js
@@ -149,7 +149,7 @@ export function initialize() {
can_create_streams: settings_data.user_can_create_streams(),
}),
);
- $(instance.popper).on("click", instance.hide);
+ $(instance.popper).one("click", instance.hide);
},
appendTo: () => document.body,
trigger: "click",