twilio-labs/paste

Toasters not dismissed

kanadipa opened this issue · 3 comments

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

  1. Go to '.Dismiss After'
  2. Add time 1000
  3. Click on 'Add Toast' twice
  4. See 2 Toasters, only one getting dismissed

Paste Core Version

20.13

Browser

No response

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

I found related issues that might be helpful:

  • #3936

  • #1175 (comment)
    This issue was resolved with the suggestion that the ID for a toast is optional and should not be necessary for the useToaster hook to work correctly. Removing the ID setting for a toast should resolve the issue of multiple toasters not being dismissed.

Hey @kanadipa ! This fix will be merged in with this PR: #4050

Hi @kanadipa, this fix has now been released in our latest version of @twilio-paste/core 20.16.0