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: Remove unused `hideOnEmpty` option.

evykassirerd131f4119ff6
diff --git a/web/third/bootstrap-typeahead/typeahead.js b/web/third/bootstrap-typeahead/typeahead.js
index 94699cfd52c..2e746be4740 100644
--- a/web/third/bootstrap-typeahead/typeahead.js
+++ b/web/third/bootstrap-typeahead/typeahead.js
@@ -559,17 +559,7 @@ import {get_string_diff} from "../../src/util";
// the search bar).
this.options.openInputFieldOnKeyUp();
}
- // backspace
- if (
- e.keyCode === 8 &&
- this.options.helpOnEmptyStrings && // Support for inputs to set the hideOnEmpty option explicitly to false
- // to display typeahead after hitting backspace to clear the input.
- (typeof this.options.hideOnEmpty === undefined || this.options.hideOnEmpty)
- ) {
- this.lookup(true);
- } else {
- this.lookup(false);
- }
+ this.lookup(false);
}
this.maybeStopAdvance(e);