fix: 🐛

This commit is contained in:
codytseng
2025-10-25 22:45:45 +08:00
parent e089aa9663
commit def13e4f34

View File

@@ -45,8 +45,11 @@ const DropdownMenu = ({
createPortal(
<div
ref={backdropRef}
className="fixed inset-0 z-50"
onClick={() => handleOpenChange(false)}
className="fixed inset-0 z-50 pointer-events-auto"
onClick={(e) => {
e.stopPropagation()
handleOpenChange(false)
}}
/>,
document.body
)}