mirror of https://github.com/zulip/zulip.git
topic_list: Harden topic clicks against propagation.
I saw some profiling traces where it appears multiple copies of this click handler got processed when clicking on a topic in the left sidebar. I suspect that was a profiling artifact, but the intent is for on_topic_click to fully process clicks on topics in the sidebar, and we should write the code to say that.
This commit is contained in:
parent
a1e31a44bd
commit
fce6f4ef66
|
@ -359,6 +359,7 @@ export function initialize({
|
|||
on_topic_click(stream_id, topic);
|
||||
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
},
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue