Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typeahead: Default options to undefined instead of null.
evykassirer596233e14def
diff --git a/web/src/bootstrap_typeahead.js b/web/src/bootstrap_typeahead.jsindex 0555c88e787..d5212d385bc 100644--- a/web/src/bootstrap_typeahead.js+++ b/web/src/bootstrap_typeahead.js@@ -162,8 +162,6 @@ const defaults = {stopAdvance: false,dropup: false,advanceKeyCodes: [],- openInputFieldOnKeyUp: null,- closeInputFieldOnHide: null,tabIsEnter: true,};@@ -291,7 +289,7 @@ Typeahead.prototype = {hide() {this.$container.hide();this.shown = false;- if (this.options.closeInputFieldOnHide !== null) {+ if (this.options.closeInputFieldOnHide !== undefined) {this.options.closeInputFieldOnHide();}return this;@@ -574,7 +572,7 @@ Typeahead.prototype = {) {return;}- if (this.options.openInputFieldOnKeyUp !== null && !this.shown) {+ if (this.options.openInputFieldOnKeyUp !== undefined && !this.shown) {// If the typeahead isn't shown yet, the `lookup` call will open it.// Here we make a callback to the input field before we open the// lookahead in case it needs to make UI changes first (e.g. widening