Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typeahead: Fix buggy advanceKeyCodes code.
evykassirera55979ebf82b
diff --git a/web/third/bootstrap-typeahead/typeahead.js b/web/third/bootstrap-typeahead/typeahead.jsindex f59b5fd8b70..70a72cad886 100644--- a/web/third/bootstrap-typeahead/typeahead.js+++ b/web/third/bootstrap-typeahead/typeahead.js@@ -435,7 +435,7 @@ Typeahead.prototype = {const pseudo_keycode = get_pseudo_keycode(e);if ((this.options.stopAdvance || (pseudo_keycode !== 9 && pseudo_keycode !== 13)) &&- $.inArray(e.keyCode, this.options.advanceKeyCodes)+ !this.options.advanceKeyCodes.includes(e.keyCode)) {e.stopPropagation();}