Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage with native Dialog element #403

Open
andelkocvjetkovic opened this issue Apr 12, 2024 · 2 comments
Open

Usage with native Dialog element #403

andelkocvjetkovic opened this issue Apr 12, 2024 · 2 comments

Comments

@andelkocvjetkovic
Copy link

andelkocvjetkovic commented Apr 12, 2024

Describe the feature / bug 馃摑:

Unfortunately, Sonner is not possible to use with the native <dialog /> element.

https://stackblitz.com/edit/vitejs-vite-zmfggr?file=src%2FApp.jsx

@shkumbinhasani
Copy link

You can "Fix" this by also adding a Toaster to the dialog see.

https://stackblitz.com/edit/vitejs-vite-ir2t3m?file=src%2FApp.jsx

This isnt ideal because it renders the Toast twice.

I created a feature request that proposes a solution to this:
#404

@andelkocvjetkovic
Copy link
Author

andelkocvjetkovic commented Apr 15, 2024

yea good solution, containerId could solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants