Skip to content

Support for mutliple toasters #618

@rickyzhangca

Description

@rickyzhangca

First of all much thanks, sonner is beautiful!

This is essential for toasting in dialog/modals, such as your great Vaul

without it, taking Vaul as an example

  • with a toaster in root, the toast is dispalyed under the drawer
  • right now even if we add another toaster in the drawer, there will be two duplicate toasts, one above drawer and one under

raising z-index does not help because the drawer is outisde of root but toasts are inside

Image

The solution might be similar to timolins/react-hot-toast#383

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions