Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typeahead: Hide typeahead on clicking outside after clicking its header.
N-Shar-maf1ec9e139f4c
diff --git a/web/third/bootstrap-typeahead/typeahead.js b/web/third/bootstrap-typeahead/typeahead.jsindex 506755b68ff..b1ff246c5c9 100644--- a/web/third/bootstrap-typeahead/typeahead.js+++ b/web/third/bootstrap-typeahead/typeahead.js@@ -495,6 +495,11 @@ import {get_string_diff} from "../../src/util";setTimeout(function () {if (!that.$container.is(':hover')) {that.hide();+ } else if (that.shown) {+ // refocus the input if the user clicked on the typeahead+ // so that clicking elsewhere registers as a blur and hides+ // the typeahead.+ that.$element.focus();}}, 150)}