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.

dialog_widget: Fix 'onclick' event type.

Varun Singh40953f7ada68
diff --git a/web/src/dialog_widget.ts b/web/src/dialog_widget.ts
index b758376fce5..05749e01316 100644
--- a/web/src/dialog_widget.ts
+++ b/web/src/dialog_widget.ts
@@ -61,7 +61,7 @@ function current_dialog_widget_selector(): string {
export type DialogWidgetConfig = {
html_heading: string;
html_body: string;
- on_click: (e: unknown) => void;
+ on_click: (e: JQuery.ClickEvent) => void;
html_submit_button?: string;
html_exit_button?: string;
close_on_submit?: boolean;