Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
dropdown_list_widget: Pass the event object to the `update` function.
Ganesh Paware38d4cb7dd21
diff --git a/web/src/dropdown_list_widget.js b/web/src/dropdown_list_widget.jsindex aecb97e6c6d..66451116d9f 100644--- a/web/src/dropdown_list_widget.js+++ b/web/src/dropdown_list_widget.js@@ -79,9 +79,9 @@ export class DropdownListWidget {$elem.closest(".input-group").find(".dropdown_list_reset_button").show();}- update(value) {+ update(value, e) {this.render(value);- this.on_update(value);+ this.on_update(value, e);}register_event_handlers() {@@ -90,11 +90,11 @@ export class DropdownListWidget {".list_item",(e) => {const value = $(e.currentTarget).attr("data-value");- this.update(value);+ this.update(value, e);},);$(`#${CSS.escape(this.container_id)} .dropdown_list_reset_button`).on("click", (e) => {- this.update(this.null_value);+ this.update(this.null_value, e);e.preventDefault();});}