diff --git a/src/components/modal.jsx b/src/components/modal.jsx index 427b7123..f1aaaf0e 100644 --- a/src/components/modal.jsx +++ b/src/components/modal.jsx @@ -61,6 +61,7 @@ function Modal({ children, onClose, onClick, class: className }) { const focusElement = modalRef.current?.querySelector('[tabindex="-1"]'); const isFocusable = + !!focusElement && getComputedStyle(focusElement)?.pointerEvents !== 'none'; if (focusElement && isFocusable) { focusElement.focus();