nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
4.11k stars 542 forks source link

Problem with multiple toasts in succession #2686

Open juretopolak opened 3 days ago

juretopolak commented 3 days ago

Environment

Is this bug related to Nuxt or Vue?

Nuxt

Version

v3.0.0-alpha.7

Reproduction

https://github.com/juretopolak/nuxt-ui3-toasts

https://codesandbox.io/p/github/juretopolak/nuxt-ui3-toasts/main

Description

I’ve noticed an issue where toasts fail to render properly when multiple toasts are triggered in quick succession, such as within a loop. This leads to unexpected behavior, such as:

•   Some toasts not appearing at all.
•   Overlapping toasts.

In the reproduction, every time a button is clicked 2 toasts should appear.

Additional context

https://github.com/user-attachments/assets/161918f9-7ab2-45d9-aebb-493977ebbc52

Logs

AnthonyCVP commented 2 days ago

Agreed, would be nice to have multiple toasts of same type in one notification.