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.

popover_menus: Adjust comment.

Aman Agrawal95224d680fb0
diff --git a/static/js/popover_menus.js b/static/js/popover_menus.js
index b82e8d54413..278b6a8f44e 100644
--- a/static/js/popover_menus.js
+++ b/static/js/popover_menus.js
@@ -116,13 +116,9 @@ export function initialize() {
},
});
- // We need to hide instance manually for popover due to
- // `$("body").on("click"...` method not being triggered for
- // the elements when we do:
- // `$(instance.popper).one("click", instance.hide); in onShow.
- // Cannot reproduce it on codepen -
- // https://codepen.io/amanagr/pen/jOLoKVg
- // So, probably a bug on our side.
+ // Click event handlers for it are handled in `compose_ui` and
+ // we don't want to close this popover on click inside it but
+ // only if user clicked outside it.
delegate("body", {
...default_popover_props,
target: ".compose_control_menu_wrapper",