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 loading spinner not visible on submit button.

Aman Agrawal70d74e4d0154
diff --git a/web/src/dialog_widget.ts b/web/src/dialog_widget.ts
index 9fd439d41d4..393830c3e05 100644
--- a/web/src/dialog_widget.ts
+++ b/web/src/dialog_widget.ts
@@ -183,9 +183,11 @@ export function launch(conf: DialogWidgetConfig): string {
const $dialog = $(html);
$("body").append($dialog);
- if (conf.post_render !== undefined) {
- conf.post_render(modal_unique_id);
- }
+ setTimeout(() => {
+ if (conf.post_render !== undefined) {
+ conf.post_render(modal_unique_id);
+ }
+ }, 0);
const $submit_button = $dialog.find(".dialog_submit_button");