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( createPortal(
<div <div
ref={backdropRef} ref={backdropRef}
className="fixed inset-0 z-50" className="fixed inset-0 z-50 pointer-events-auto"
onClick={() => handleOpenChange(false)} onClick={(e) => {
e.stopPropagation()
handleOpenChange(false)
}}
/>, />,
document.body document.body
)} )}