mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-11 02:25:08 +01:00
Focustrap workaround, pain
This commit is contained in:
parent
ef9eaf074e
commit
09da337362
@ -70,6 +70,11 @@ export function OverlayPortal(props: {
|
|||||||
className="absolute inset-0 pointer-events-none"
|
className="absolute inset-0 pointer-events-none"
|
||||||
isChild
|
isChild
|
||||||
>
|
>
|
||||||
|
{/* a tabable index that does nothing - used so focus trap doesn't error when nothing is rendered yet */}
|
||||||
|
<div
|
||||||
|
tabIndex={1}
|
||||||
|
className="focus:ring-0 focus:outline-none opacity-0"
|
||||||
|
/>
|
||||||
{props.children}
|
{props.children}
|
||||||
</Transition>
|
</Transition>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user