Skip to content

Two toasts displayed for a single Flux::toast() call when using flux:toast.group with flux:toast inside #2571

@alex8013

Description

@alex8013

Flux version

v2.13.2

Livewire version

v4.2.4

Tailwind version

v4.2.2

Browser and Operating System

Browser: All browsers tested (Firefox, Chrome) - issue is not browser-specific | Operating System: Windows 11

What is the problem?

When using <flux:toast.group position="top end"><flux:toast /></flux:toast.group> as shown in the official documentation, every Flux::toast() call displays two toasts simultaneously instead of one.
Investigation confirmed:

Only one ui-toast-group and one ui-toast exist in the DOM
Livewire response contains only one toast-show dispatch
showToast is called only once (confirmed via console.trace)
The issue occurs on all browsers (Firefox, Chrome) and all pages

The only workaround is to use <flux:toast /> alone without flux:toast.group, which correctly shows a single toast.

Code snippets to replicate the problem

<flux:toast.group position="top end">
<flux:toast />
</flux:toast.group>

Screenshots/ screen recordings of the problem

Image
Image

How do you expect it to work?

A single Flux::toast() call should display exactly one toast notification. When using flux:toast.group<flux:toast /></flux:toast.group> as documented, only one toast should appear at a time.

Please confirm (incomplete submissions will not be addressed)

  • I have provided easy and step-by-step instructions to reproduce the bug.
  • I have provided code samples as text and NOT images.
  • I understand my bug report will be closed if I haven't met the criteria above.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions