fix: click drawer outside not close
This commit is contained in:
parent
320a1c22fc
commit
46293bd6f4
@ -50,6 +50,9 @@ export default function Drawer({
|
||||
{/* mask */}
|
||||
<DialogBackdrop
|
||||
className={cn('fixed inset-0 z-40', mask && 'bg-black bg-opacity-30')}
|
||||
onClick={() => {
|
||||
!clickOutsideNotOpen && onClose()
|
||||
}}
|
||||
/>
|
||||
<div className={cn('relative z-50 flex w-full max-w-sm flex-col justify-between overflow-hidden bg-components-panel-bg p-6 text-left align-middle shadow-xl', panelClassname)}>
|
||||
<>
|
||||
|
Loading…
Reference in New Issue
Block a user