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.

list_widget: Fix implicit use of any.

Anders Kaseorg33430f06c3cd
diff --git a/web/src/list_widget.ts b/web/src/list_widget.ts
index 627d64b88e1..6ec2f51a1bc 100644
--- a/web/src/list_widget.ts
+++ b/web/src/list_widget.ts
@@ -433,9 +433,13 @@ export function create<Key, Item = Key>(
});
if (opts.$parent_container) {
- opts.$parent_container.on("click.list_widget_sort", "[data-sort]", function () {
- handle_sort($(this), widget);
- });
+ opts.$parent_container.on(
+ "click.list_widget_sort",
+ "[data-sort]",
+ function (this: HTMLElement) {
+ handle_sort($(this), widget);
+ },
+ );
}
opts.filter?.$element?.on("input.list_widget_filter", function () {