Skip to content

An opinionated toast component for React.

Utilize ref in Toaster (#536)

Rosterob127760d532b
diff --git a/src/index.tsx b/src/index.tsx
index a3ea512..11d3a8a 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -643,6 +643,7 @@ const Toaster = forwardRef<HTMLElement, ToasterProps>(function Toaster(props, re
return (
// Remove item from normal navigation flow, only available via hotkey
<section
+ ref={ref}
aria-label={`${containerAriaLabel} ${hotkeyLabel}`}
tabIndex={-1}
aria-live="polite"