Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

typeahead: Fix bug where typeahead showed momentarily on shift + tab.

N-Shar-ma0003c3c1ef21
diff --git a/web/third/bootstrap-typeahead/typeahead.js b/web/third/bootstrap-typeahead/typeahead.js
index 1687b48a9bd..da65b9b9d6a 100644
--- a/web/third/bootstrap-typeahead/typeahead.js
+++ b/web/third/bootstrap-typeahead/typeahead.js
@@ -526,6 +526,13 @@ import {get_string_diff} from "../../src/util";
}
break
+ // to stop typeahead from showing up momentarily
+ // when shift + tabbing to the topic field
+ case 16: // shift
+ if (e.currentTarget.id === "stream_message_recipient_topic") {
+ return;
+ }
+
default:
var hideOnEmpty = false
// backspace