Skip to content

Commit 41dd9f0

Browse files
authored
Use forwardRef on DialogOverlay, whoops (#2059)
use forwardRef on DialogOverlay, whoops
1 parent 0469280 commit 41dd9f0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/ui/lib/DialogOverlay.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* Copyright Oxide Computer Company
77
*/
88

9-
export const DialogOverlay = () => (
10-
<div aria-hidden className="fixed inset-0 z-10 overflow-auto bg-scrim" />
11-
)
9+
import { forwardRef } from 'react'
10+
11+
export const DialogOverlay = forwardRef<HTMLDivElement>((_, ref) => (
12+
<div ref={ref} aria-hidden className="fixed inset-0 z-10 overflow-auto bg-scrim" />
13+
))

0 commit comments

Comments
 (0)