Skip to content

An opinionated toast component for React.

fix: keep the toaster as top layer when react-aria modal is open (#699)

Sadegh Baratia685ffc7bd07
diff --git a/src/index.tsx b/src/index.tsx
index fc6a3db..ce031e8 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -780,6 +780,7 @@ const Toaster = React.forwardRef<HTMLElement, ToasterProps>(function Toaster(pro
aria-relevant="additions text"
aria-atomic="false"
suppressHydrationWarning
+ data-react-aria-top-layer
>
{possiblePositions.map((position, index) => {
const [y, x] = position.split('-');