mirror of https://github.com/zulip/zulip.git
popover_menus: Fix popovers not shown if reference is beside compose.
Since `#compose` occupies full width of the window, it is a part of `elements_at_reference_position` if the reference is under it. Since `#compose-content` only occupies the part of window where compose box is actually visible, we use it decide if the popover should be hidden.
This commit is contained in:
parent
c3fd7d837b
commit
a4b4b0ad38
|
@ -210,7 +210,7 @@ export const default_popover_props = {
|
|||
elements_at_reference_position.some(
|
||||
(element) =>
|
||||
element.id === "navbar-fixed-container" ||
|
||||
element.id === "compose" ||
|
||||
element.id === "compose-content" ||
|
||||
element.classList.contains("sticky_header"),
|
||||
)
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue