Open Slash52 opened 1 year ago
If I use
<Toaster toastOptions={{ duration: 7000, error: { ariaProps: { role: 'alert', 'aria-live': 'assertive' }, }, }} />
the role is not set on every
toast.error('error message')
call. the 'role' ist still 'status' .
But if I call the toast with
toast.error('error message', { ariaProps: { role: 'alert', 'aria-live': 'assertive' }})
it works as expected and the role attribute is set correctly.
stackblitz to reproduce
https://stackblitz.com/edit/vitejs-vite-rmtgsb?file=src/App.tsx
I'm also having this issue.
If I use
the role is not set on every
call. the 'role' ist still 'status' .
But if I call the toast with
it works as expected and the role attribute is set correctly.