Toasters not dismissed
kanadipa opened this issue · 3 comments
kanadipa commented
Description
When multiple Toasters come up, only the first one gets dismissed when using useToaster. The rest stay on the screen.
Link to Reproduction
https://paste.twilio.design/components/toast#usetoaster-hook
Steps to reproduce
- Go to '.Dismiss After'
- Add time 1000
- Click on 'Add Toast' twice
- See 2 Toasters, only one getting dismissed
Paste Core Version
20.13
Browser
No response
Operating System
- macOS
- Windows
- Linux
Additional Information
No response
dosubot commented
I found related issues that might be helpful:
-
#1175 (comment)
This issue was resolved with the suggestion that the ID for a toast is optional and should not be necessary for theuseToaster
hook to work correctly. Removing the ID setting for a toast should resolve the issue of multiple toasters not being dismissed.
serifluous commented
krisantrobus commented
Hi @kanadipa, this fix has now been released in our latest version of @twilio-paste/core 20.16.0