mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +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.
|
// These properties can override any tippy props.
|
||||||
this.tippy_props = options.tippy_props ?? {};
|
this.tippy_props = options.tippy_props ?? {};
|
||||||
this.list_widget = undefined;
|
this.list_widget = undefined;
|
||||||
this.instance = undefined;
|
|
||||||
this.default_id = options.default_id;
|
this.default_id = options.default_id;
|
||||||
this.current_value = this.default_id;
|
this.current_value = this.default_id;
|
||||||
this.unique_id_type = options.unique_id_type;
|
this.unique_id_type = options.unique_id_type;
|
||||||
@@ -243,7 +242,7 @@ export class DropdownWidget {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.instance = tippy.delegate(delegate_container, {
|
tippy.delegate(delegate_container, {
|
||||||
...popover_menus.default_popover_props,
|
...popover_menus.default_popover_props,
|
||||||
target: this.widget_selector,
|
target: this.widget_selector,
|
||||||
// Custom theme defined in popovers.css
|
// Custom theme defined in popovers.css
|
||||||
@@ -430,7 +429,6 @@ export class DropdownWidget {
|
|||||||
$(this.widget_selector).trigger("focus");
|
$(this.widget_selector).trigger("focus");
|
||||||
}
|
}
|
||||||
this.on_hidden_callback(instance);
|
this.on_hidden_callback(instance);
|
||||||
this.instance = undefined;
|
|
||||||
},
|
},
|
||||||
...this.tippy_props,
|
...this.tippy_props,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user