compose_typeahead: Cut dependency on compose.js.

This commit is contained in:
Lalit
2023-06-18 12:39:19 +05:30
committed by Tim Abbott
parent e1ef8c623c
commit 6ade7dcfb9
3 changed files with 18 additions and 12 deletions

View File

@@ -714,7 +714,10 @@ export function initialize_everything() {
linkifiers.initialize(page_params.realm_linkifiers);
realm_playground.initialize(page_params.realm_playgrounds, generated_pygments_data);
compose.initialize();
composebox_typeahead.initialize(); // Must happen after compose.initialize()
// Typeahead must be initialized after compose.initialize()
composebox_typeahead.initialize({
on_enter_send: compose.finish,
});
compose_textarea.initialize();
search.initialize();
tutorial.initialize();