mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 07:52:19 +00:00
Modals are closed when selecting something inside the modal if mouse is dragged outside the modal. This happens as leaving the mouse after dragging it outside the modal induces a click even outside the modal and the current behavior is to close the modal on clicking outside it. We remove the "data-micromodal-close" attribute from "modal__overlay" element which is responsible for closing the modal. And we add click handler which closes the modal on clicking outside the modal but does not closes it when the mouse is dragged outside while selecting something. Fixes #23350.
10 KiB
10 KiB