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

Inconsistent Notification Stacking with stacked and newestOnTop #1094

Open
in0vik opened this issue Mar 28, 2024 · 1 comment
Open

Inconsistent Notification Stacking with stacked and newestOnTop #1094

in0vik opened this issue Mar 28, 2024 · 1 comment

Comments

@in0vik
Copy link

in0vik commented Mar 28, 2024

When using React-Toastify with both stacked and newestOnTop options enabled, the notification stack behaves inconsistently, with notifications appearing to jump or reorder unpredictably.

@aminBenSlimen
Copy link

It shouldn't act this way but i think you don't need newestOnTop since there will be only one visible with stacked set to true unless you're dynamically changing stacked, in that case that's your situation a simple workaround for this bug is to make sure when an option is true the other is not.
<ToastContainer stacked={useStacked} newestOnTop={!useStacked} />

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