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.

stream_popover: Use currentTarget as reference to the stream popover.

Daniil Fadeev35d97160bcfc
diff --git a/web/src/stream_popover.js b/web/src/stream_popover.js
index 06dd6de88ca..274417bc1a9 100644
--- a/web/src/stream_popover.js
+++ b/web/src/stream_popover.js
@@ -436,7 +436,7 @@ export function register_click_handlers() {
$("#stream_filters").on("click", ".stream-sidebar-menu-icon", (e) => {
e.stopPropagation();
- const elt = e.target;
+ const elt = e.currentTarget;
const $stream_li = $(elt).parents("li");
const stream_id = elem_to_stream_id($stream_li);