mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 01:47:41 +00:00
Simplify and fix preventDefault -> stopPropagation
(imported from commit 3cb84804027b67662392e5a7c75bfb0603b9318d)
This commit is contained in:
@@ -1271,8 +1271,7 @@ $(function () {
|
||||
|
||||
$("body").on('click', function (e) {
|
||||
// Dismiss popovers if the user has clicked outside them
|
||||
if ($('.popover-inner').has(e.target).length === 0
|
||||
&& $('#stream_filters span.arrow').has(e.target).length === 0) {
|
||||
if ($('.popover-inner').has(e.target).length === 0) {
|
||||
popovers.hide_all();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user