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.

dropdown_widget: Fix DropdownWidgetOptions.

evykassirera8d261a68f58
diff --git a/web/src/dropdown_widget.ts b/web/src/dropdown_widget.ts
index a2dfd172341..a99f57cdcce 100644
--- a/web/src/dropdown_widget.ts
+++ b/web/src/dropdown_widget.ts
@@ -38,7 +38,7 @@ type DropdownWidgetOptions = {
widget_name: string;
// You can bold the selected `option` by setting `option.bold_current_selection` to `true`.
// Currently, not implemented for stream names.
- get_options: () => Option[];
+ get_options: (current_value: string | number | undefined) => Option[];
item_click_callback: (
event: JQuery.ClickEvent,
instance: tippy.Instance,