Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
dropdown_widget: Remove unused instance property.
Aman Agrawal82d3058b53eb
diff --git a/web/src/dropdown_widget.ts b/web/src/dropdown_widget.tsindex ecb210cfd97..b5c92c56673 100644--- a/web/src/dropdown_widget.ts+++ b/web/src/dropdown_widget.ts@@ -118,7 +118,6 @@ export class DropdownWidget {// These properties can override any tippy props.this.tippy_props = options.tippy_props ?? {};this.list_widget = undefined;- this.instance = undefined;this.default_id = options.default_id;this.current_value = this.default_id;this.unique_id_type = options.unique_id_type;@@ -243,7 +242,7 @@ export class DropdownWidget {return;}- this.instance = tippy.delegate(delegate_container, {+ tippy.delegate(delegate_container, {...popover_menus.default_popover_props,target: this.widget_selector,// Custom theme defined in popovers.css@@ -430,7 +429,6 @@ export class DropdownWidget {$(this.widget_selector).trigger("focus");}this.on_hidden_callback(instance);- this.instance = undefined;},...this.tippy_props,});