diff --git a/app/components/Dialog.tsx b/app/components/Dialog.tsx index f7f12c367..081f30fbe 100644 --- a/app/components/Dialog.tsx +++ b/app/components/Dialog.tsx @@ -22,6 +22,11 @@ export function Dialog({ ? (event: React.MouseEvent) => { if (closeOnAnyClick) return close(); const rect: DOMRect = ref.current.getBoundingClientRect(); + + // https://stackoverflow.com/a/77402711 + const isFirefoxSelectClick = event.clientY === 0 && event.clientX === 0; + if (isFirefoxSelectClick) return; + const isInDialog = rect.top <= event.clientY && event.clientY <= rect.top + rect.height &&