diff --git a/frontend_tests/node_tests/composebox_typeahead.js b/frontend_tests/node_tests/composebox_typeahead.js index 0136ed0213..9939ddc236 100644 --- a/frontend_tests/node_tests/composebox_typeahead.js +++ b/frontend_tests/node_tests/composebox_typeahead.js @@ -1054,6 +1054,7 @@ test("initialize", ({override, mock_template}) => { id: "stream_message_recipient_stream", }, preventDefault: noop, + stopPropagation: noop, }; $("#stream_message_recipient_topic").data = () => ({typeahead: {shown: true}}); diff --git a/static/js/composebox_typeahead.js b/static/js/composebox_typeahead.js index 22f8c9d006..1cd84e0250 100644 --- a/static/js/composebox_typeahead.js +++ b/static/js/composebox_typeahead.js @@ -226,6 +226,7 @@ function handle_keydown(e) { // typing a next message! $("#compose-send-button").trigger("focus"); e.preventDefault(); + e.stopPropagation(); } } else { // Enter