Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
bootstrap_typeahead: Add typeahead_tooltip option to check any instance.
Pratik Chandaee164e817b8b
diff --git a/web/src/bootstrap_typeahead.ts b/web/src/bootstrap_typeahead.tsindex 74ba4c45b14..a33f485a83f 100644--- a/web/src/bootstrap_typeahead.ts+++ b/web/src/bootstrap_typeahead.ts@@ -246,6 +246,8 @@ export class Typeahead<ItemType extends string | object> {shown = false;// To trigger updater when Esc is pressed only during the stream topic typeahead in composebox.select_on_escape_condition: () => boolean;+ // Used to clear tooltip instances attached to typeahead container.+ clear_typeahead_tooltip: (() => void) | undefined;openInputFieldOnKeyUp: (() => void) | undefined;closeInputFieldOnHide: (() => void) | undefined;helpOnEmptyStrings: boolean;@@ -293,6 +295,7 @@ export class Typeahead<ItemType extends string | object> {this.dropup = options.dropup ?? false;this.automated = options.automated ?? (() => false);this.trigger_selection = options.trigger_selection ?? (() => false);+ this.clear_typeahead_tooltip = options.clear_typeahead_tooltip;this.on_escape = options.on_escape;// return a string to show in typeahead footer or false.this.footer_html = options.footer_html ?? (() => false);@@ -910,6 +913,7 @@ type TypeaheadOptions<ItemType> = {hideOnEmptyAfterBackspace?: boolean;matcher?: (item: ItemType, query: string) => boolean;on_escape?: () => void;+ clear_typeahead_tooltip?: () => void;openInputFieldOnKeyUp?: () => void;option_label?: (matching_items: ItemType[], item: ItemType) => string | false;non_tippy_parent_element?: string;