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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Showing multiple toasts in quick succession flows over top of screen #7034

Closed
ashleymercer opened this issue Oct 30, 2024 · 2 comments · Fixed by #7049
Closed

Showing multiple toasts in quick succession flows over top of screen #7034

ashleymercer opened this issue Oct 30, 2024 · 2 comments · Fixed by #7049

Comments

@ashleymercer
Copy link

ashleymercer commented Oct 30, 2024

Environment

  • Package version(s): @blueprintjs/core 5.13.1
  • Operating System: Windows Server 2016
  • Browser name and version: Chrome 130.0.6723.70

Code Sandbox

https://codesandbox.io/p/sandbox/jovial-galois-x8727d

Relevant code is in src/App.tsx - if you increase the waitInterval to one second then the toasts animate smoothly, but if we don't wait (waitInterval = 0) then they get stuck.

Steps to reproduce

  1. create an <OverlayToaster>
  2. send multiple toast messages to it in quick succession

Actual behavior

Animation seems to stop early and some toast messages flow over the top of the screen.

Expected behavior

All toast should finish animating correctly into the correct position.

Possible solution

This seems to be some timing issue: if we insert an arbitrary wait between sending toasts then they animate correctly.

@Lonli-Lokli
Copy link

same happens with my project, unfortunately we cannot control error toasters

@Lonli-Lokli
Copy link

@jscheiny it still happens with my app

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

Successfully merging a pull request may close this issue.

2 participants