From 5b6765f4487f803b6c9398104a61084db5f4cc31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Gr=C3=A9lard?= Date: Mon, 4 Apr 2022 12:16:37 +0100 Subject: [PATCH] [Toast] Allow `children` in `Viewport` types for `asChild` composition --- .yarn/versions/3abef429.yml | 5 +++++ packages/react/toast/src/Toast.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .yarn/versions/3abef429.yml diff --git a/.yarn/versions/3abef429.yml b/.yarn/versions/3abef429.yml new file mode 100644 index 0000000000..ff90d86b3a --- /dev/null +++ b/.yarn/versions/3abef429.yml @@ -0,0 +1,5 @@ +releases: + "@radix-ui/react-toast": patch + +declined: + - primitives diff --git a/packages/react/toast/src/Toast.tsx b/packages/react/toast/src/Toast.tsx index bab7a337b0..565e230e9c 100644 --- a/packages/react/toast/src/Toast.tsx +++ b/packages/react/toast/src/Toast.tsx @@ -112,7 +112,7 @@ const VIEWPORT_RESUME = 'toast.viewportResume'; type ToastViewportElement = React.ElementRef; type PrimitiveOrderedListProps = Radix.ComponentPropsWithoutRef; -interface ToastViewportProps extends Omit { +interface ToastViewportProps extends PrimitiveOrderedListProps { /** * The keys to use as the keyboard shortcut that will move focus to the toast viewport. * @defaultValue ['F8']