We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
forwardRef
DialogOverlay
1 parent 0469280 commit 41dd9f0Copy full SHA for 41dd9f0
app/ui/lib/DialogOverlay.tsx
@@ -6,6 +6,8 @@
6
* Copyright Oxide Computer Company
7
*/
8
9
-export const DialogOverlay = () => (
10
- <div aria-hidden className="fixed inset-0 z-10 overflow-auto bg-scrim" />
11
-)
+import { forwardRef } from 'react'
+
+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