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_list_widget: Properly bind focus to dropdown elements.

aryanshridhar352acdcc36e7
diff --git a/static/js/dropdown_list_widget.js b/static/js/dropdown_list_widget.js
index 0c124f7faa8..fe4ec6736f6 100644
--- a/static/js/dropdown_list_widget.js
+++ b/static/js/dropdown_list_widget.js
@@ -133,6 +133,7 @@ export const DropdownListWidget = function ({
return;
}
e.preventDefault();
+ e.stopPropagation();
const custom_event = new $.Event("keydown.dropdown.data-api", {
keyCode: e.keyCode,
which: e.keyCode,