mirror of https://github.com/zulip/zulip.git
stream_list: Use more specific classname for click handler.
This avoids this code being fragile with any future refactoring.
This commit is contained in:
parent
e734694229
commit
f29f1299aa
|
@ -860,7 +860,7 @@ export function set_event_handlers({
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
const stream_id = stream_id_for_elt($(e.target).parents("li"));
|
const stream_id = stream_id_for_elt($(e.target).parents("li.narrow-filter"));
|
||||||
const current_narrow_stream_id = narrow_state.stream_id();
|
const current_narrow_stream_id = narrow_state.stream_id();
|
||||||
const current_topic = narrow_state.topic();
|
const current_topic = narrow_state.topic();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue