Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
modals: Move a misplaced comment.
Tim Abbott219a3c9b091e
diff --git a/web/src/modals.ts b/web/src/modals.tsindex c35ee88d8f1..72b2b1020d8 100644--- a/web/src/modals.ts+++ b/web/src/modals.ts@@ -144,11 +144,6 @@ export function open(});$micromodal.find(".modal__overlay").on("click", (e) => {- /* Micromodal's data-micromodal-close feature doesn't check for- range selections; this means dragging a selection of text in an- input inside the modal too far will weirdly close the modal.- See https://github.com/ghosh/Micromodal/issues/505.- Work around this with our own implementation. */if (!$(e.target).is(".modal__overlay")) {return;}@@ -157,6 +152,11 @@ export function open(return;}+ /* Micromodal's data-micromodal-close feature doesn't check for+ range selections; this means dragging a selection of text in an+ input inside the modal too far will weirdly close the modal.+ See https://github.com/ghosh/Micromodal/issues/505.+ Work around this with our own implementation. */if (document.getSelection()?.type === "Range") {return;}