Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
dialog_widget: Prevent default action when submitting the form.
Lalitd14caa8400cb
diff --git a/web/src/dialog_widget.ts b/web/src/dialog_widget.tsindex 78a173f02e0..6915b7a273e 100644--- a/web/src/dialog_widget.ts+++ b/web/src/dialog_widget.ts@@ -190,6 +190,8 @@ export function launch(conf: DialogWidgetConfig): void {// Set up handlers.$submit_button.on("click", (e) => {+ e.preventDefault();+if (conf.validate_input && !conf.validate_input(e)) {return;}