dropdown_widget: Remove unused instance property.

This commit is contained in:
Aman Agrawal
2024-08-20 09:31:41 +00:00
committed by Tim Abbott
parent 3cb14ba7db
commit 82d3058b53

View File

@@ -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,
}); });