Focus-trap: Use allowOutsideClick where appropriate
This commit is contained in:
parent
048e1e4cd7
commit
d542f450a1
3 changed files with 16 additions and 3 deletions
|
@ -58,7 +58,12 @@ export const ModalHost = React.memo(
|
|||
|
||||
return root
|
||||
? createPortal(
|
||||
<FocusTrap>
|
||||
<FocusTrap
|
||||
focusTrapOptions={{
|
||||
// This is alright because the overlay covers the entire screen
|
||||
allowOutsideClick: false,
|
||||
}}
|
||||
>
|
||||
<div
|
||||
role="presentation"
|
||||
className={classNames(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue