Skip to content

Commit 71c7938

Browse files
committed
lint
1 parent ed3a0c8 commit 71c7938

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/@react-spectrum/toast/src/Toast.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export const Toast = React.forwardRef(function Toast(props: SpectrumToastProps,
9292
...closeButtonProps,
9393
onPress: (e) => {
9494
if ('startViewTransition' in document) {
95+
// @ts-expect-error
9596
document.startViewTransition(() => {
9697
flushSync(() => {
9798
closeButtonProps.onPress?.(e);

packages/@react-spectrum/toast/src/ToastContainer.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ function addToast(children: string, variant: SpectrumToastValue['variant'], opti
183183
let key: string;
184184
let add = () => queue.add(value, {timeout, onClose: options.onClose});
185185
if ('startViewTransition' in document) {
186+
// @ts-expect-error
186187
document.startViewTransition(() => {
187188
flushSync(() => {
188189
key = add();
@@ -193,6 +194,7 @@ function addToast(children: string, variant: SpectrumToastValue['variant'], opti
193194
}
194195

195196
if ('startViewTransition' in document) {
197+
// @ts-expect-error
196198
return () => document.startViewTransition(() => {
197199
flushSync(() => {
198200
queue.close(key);

0 commit comments

Comments
 (0)