recent_topics: Return false in `is_in_focus` if a modal is present.

This prevents a bug where keypresses are received by recent_topics view
even if a modal is present on it, which prevents, for instance, the modal
from receiving text input.
This commit is contained in:
Ganesh Pawar 2021-06-24 22:19:42 +05:30 committed by Tim Abbott
parent 1d12fcd168
commit 663743261a
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ export function is_in_focus() {
!compose_state.composing() &&
!popovers.any_active() &&
!overlays.is_active() &&
!overlays.is_modal_open() &&
!$(".home-page-input").is(":focus")
);
}