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:
Tim Abbott 2024-11-06 17:47:21 -08:00
parent a1e31a44bd
commit fce6f4ef66
1 changed files with 1 additions and 0 deletions

View File

@ -359,6 +359,7 @@ export function initialize({
on_topic_click(stream_id, topic); on_topic_click(stream_id, topic);
e.preventDefault(); e.preventDefault();
e.stopPropagation();
}, },
); );