mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 15:09:34 +00:00
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:
committed by
Tim Abbott
parent
35568ec4d6
commit
06e8d1fb16
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user