mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #30983 from overleaf/cd-close-modal-select-menus-on-click
Ensure select menus in Modals close on modal click GitOrigin-RevId: 4a07f16146ac99e6fb1fdf09d222e6832cc93079
This commit is contained in:
@@ -25,7 +25,9 @@ export default function FocusTrap({
|
||||
fallbackFocus: () => containerRef.current as HTMLElement,
|
||||
}}
|
||||
>
|
||||
<div ref={containerRef}>{children}</div>
|
||||
<div ref={containerRef} tabIndex={-1}>
|
||||
{children}
|
||||
</div>
|
||||
</FocusTrapReact>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user