Comments (4)
Seems like stacked
is weird with other options, i solved this one with moving the position
option from the toast emitter to the ToastContainer
.
toast("You cannot se me because I'm drowning :(", {
// position: "bottom-left", Remove this one
autoClose: 2500,
});
Put it here
<ToastContainer stacked position="bottom-left" />
it's also worth mentioning that it's also buggy when you set newestOnTop
to true
, the ordering is messed up until you hover and unhover again.
from react-toastify.
Hey @notcod please share a codesandox that reproduce the bug, without that I won't be able to help thank you
from react-toastify.
Here's a codesandbox of the issue (seems only to be when you use stacked, otherwise it works):
from react-toastify.
Seems like
stacked
is weird with other options, i solved this one with moving theposition
option from the toast emitter to theToastContainer
.toast("You cannot se me because I'm drowning :(", { // position: "bottom-left", Remove this one autoClose: 2500, });
Put it here
<ToastContainer stacked position="bottom-left" />
it's also worth mentioning that it's also buggy when you set
newestOnTop
totrue
, the ordering is messed up until you hover and unhover again.
Had the same issue and this fixed it for now
from react-toastify.
Related Issues (20)
- Does ToastContainer listen to theme props and auto rerender? HOT 1
- Toast Conflicting or loading infinite in promise at concurrent requests HOT 1
- Timer end function()
- The easiest way to use react-toastify with Tailwind CSS HOT 2
- Is there a way to style the toasts on mobile so that they look like on desktop?
- Is it possible to override $rt-mobile: 'only screen and (max-width : 480px)' !default;? If so, how?
- Add a data attribute to ToastContainer
- dismiss() default behaviour when no arguments are passed
- feature: closeOnClickAway
- bug: Promise success clears when 2nd promise has undefined success HOT 2
- A minor issue with the jsdoc for closeOnClick
- The timer stops HOT 1
- `autoClose` is not respected when manually setting `progress` to 1 HOT 2
- Feature: prop for passing function when close button is clicked HOT 1
- Issue in container HOT 2
- Screen readers do not reliably announce toasts with role="alert"
- Update Readme for addons > useNotificationCenter HOT 1
- [Bug] Transitions don't work without ReactToastify.css
- toastClassName and className (on the toast) are not respected
- closeOnClick still requires disabling HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-toastify.