mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
dropdown_widget: Remove unused instance property.
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user