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.

zform: Fix click handlers for zform html.

Pratik Chandaf9ca86c24685
diff --git a/web/src/zform.ts b/web/src/zform.ts
index 542fa389688..19b7016c90b 100644
--- a/web/src/zform.ts
+++ b/web/src/zform.ts
@@ -81,7 +81,8 @@ export function render(opts: {$elem: JQuery; message: Message; widget_data: Widg
}
if (data_with_choices_with_idx.type === "choices") {
- $outer_elem.html(make_choices(data_with_choices_with_idx).html());
+ const $choices = make_choices(data_with_choices_with_idx);
+ $outer_elem.empty().append($choices);
}
return;
}