Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

dropdown_widget: Fix click event being triggered multiple times.

Aman Agrawal7f38c953849b
diff --git a/web/src/dropdown_widget.ts b/web/src/dropdown_widget.ts
index b5c92c56673..1a48682f8f8 100644
--- a/web/src/dropdown_widget.ts
+++ b/web/src/dropdown_widget.ts
@@ -429,6 +429,7 @@ export class DropdownWidget {
$(this.widget_selector).trigger("focus");
}
this.on_hidden_callback(instance);
+ instance.destroy();
},
...this.tippy_props,
});