popovers: Remove click handler for .flatpickr-calendar.

It exists to prevent the $(document) click handler from seeing the
event and closing the compose box, but we could also just not close
the compose box.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-09-22 11:59:02 -07:00
committed by Tim Abbott
parent 35568ec4d6
commit 06e8d1fb16
2 changed files with 1 additions and 5 deletions

View File

@@ -954,6 +954,7 @@ export function initialize() {
!$(e.target).closest("[data-tippy-root]").length && !$(e.target).closest("[data-tippy-root]").length &&
!$(e.target).closest(".typeahead").length && !$(e.target).closest(".typeahead").length &&
!$(e.target).closest(".enter_sends").length && !$(e.target).closest(".enter_sends").length &&
!$(e.target).closest(".flatpickr-calendar").length &&
$(e.target).closest("body").length $(e.target).closest("body").length
) { ) {
// Unfocus our compose area if we click out of it. Don't let exits out // Unfocus our compose area if we click out of it. Don't let exits out

View File

@@ -132,11 +132,6 @@ export function set_suppress_scroll_hide() {
} }
export function register_click_handlers() { export function register_click_handlers() {
$("body").on("click", ".flatpickr-calendar", (e) => {
e.stopPropagation();
e.preventDefault();
});
{ {
let last_scroll = 0; let last_scroll = 0;