Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
dialog_widget: Fix implicit use of any.
Anders Kaseorg2e9b3133330e
diff --git a/web/src/dialog_widget.ts b/web/src/dialog_widget.tsindex 89777a0f4c2..cc07c2ab110 100644--- a/web/src/dialog_widget.ts+++ b/web/src/dialog_widget.ts@@ -161,9 +161,13 @@ export function launch(conf: DialogWidgetConfig): void {$inputs.each(function () {const property_name = $(this).attr("name")!;if (property_name) {- if ($(this).is("input[type='file']") && $(this).prop("files")?.length) {+ if (+ this instanceof HTMLInputElement &&+ this.type === "file" &&+ this.files?.length+ ) {// If the input is a file input and a file has been selected, set value to file object- current_values[property_name] = $(this).prop("files")[0];+ current_values[property_name] = this.files[0];} else if (property_name === "edit_bot_owner") {current_values[property_name] = $(this).find(".dropdown_widget_value").text();} else {