Skip to content

[EuiGlobalToastList] dismiss error #8611

Closed

Description

@tomitank

Global toast list has a dismiss bug, when i add two or more toast in same time to the list.

  • EUI version: all
  • React version: all
  • Kibana version (if applicable): -
  • Browser: all
  • Operating System: all

Steps to reproduce the behavior:
add multiple toost in same time to te list with same timeout.
The dismissToast function will be run only for the last toast caused by "status override".
All toast has dismissed class, but not deleted from DOM.8 And because of the div is clickable, this will be hides the content.

Expected behavior
All toast close and delete from DOM.

Image

Impact and severity
Probably an edge case.

Activity

  1. mgadewoll commented on Apr 23, 2025

    @mgadewoll
    Contributor

    Thanks for raising this @tomitank!

    I can confirm that this is reproducible when multiple toasts are added and removed at the same time.

    Screen.Recording.2025-04-23.at.19.00.29.mov

    I think we can fix this by handling an array of toasts instead of a single dismissible toast here.

    Screen.Recording.2025-04-23.at.19.02.03.mov
  2. added theissue type on Apr 23, 2025
  3. changed the title [-]Toastlist dismiss error[/-] [+][EuiGlobalToastList] dismiss error[/+] on May 1, 2025
  4. self-assigned this
    on May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions