-
-
Notifications
You must be signed in to change notification settings - Fork 673
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
Toast not disappearing #32
Comments
hello @haydencarlson, Thanks |
I have a view which contains the toast container
In one of my components:
It shows up fine, and everything seems to be working it just won't auto close unless I explicitly call |
Anyone? |
Hey @haydencarlson, I took your code but I'm unable to reproduce the issue :( . Can you tell me more about your setup please ?
|
Version 54.0.2840.90 (64-bit) Using react router yes React: 15.4.1 |
Hello @haydencarlson, I think I have an idea why your toast it's not removed. Your Move the ToastContainer at the root of your application to solve the issue. |
@fkhadra you were right. Thanks ! |
I'm getting the same exact issue. The const App = () => (
<BrowserRouter>
<main className="container">
// Some more stuff goes here
<Routes />
<footer className="footer">Footer</footer>
<ToastContainer autoClose={1000} />
</main>
</BrowserRouter>
); And then calling in a component: toast.success("Some success message", {
className: "toast-success",
}); The toast shows up, shows the progress bar, although no progress bar animation is happening and the toast doesn't disappear after 1s. React: 16.5.2 Thoughts? |
Hello @ecdeveloper, Could you reproduce the issue on codesandbox please. PS: next time don't hesitate to open a new issue. It's easier for me to keep a track on. Thanks |
hi @fkhadra, Thanks for your reply. In sandbox it all works fine, so I think there may be some conflicting module (maybe?) in my setup. Will try to debug myself, thank you. |
Magic. Removed the existing package. Reinstalled it. Everything works like a charm now. I think there might've been a glitch in the older version I was using before. |
@ecdeveloper perfect probably a cache issue or something like that. I'm glad you fixed your issue 👍 |
My problem was that if the progress bar was disabled |
This problems seems to persist. I am using the latest version (8.0.1). Reducer is being executed and triggering the REMOVE action. |
@ricardoribas please provide a reproduction otherwise I cannot help :( |
After researching a bit, it seemed that was a matter of importing the css file. Problem solved. Additionally, there is any prop to disable the animations? |
@fkhadra I don't know what's wrong with my configuration. Auto disappearing isn't working for me. Brave Browser version: 1.36.109 Chromium
Other project dependencies:
Imported CSS in 'index.js'
Usage:
It gets removed only if I click or drag it. |
same here, it doesn't disappear even if put the |
I still have the issue with progress toast on Mozilla (but not Chrome.)
|
toast.success("Your passwords do not match", {autoClose: 4000});
Using
toast.dismiss(<toast_id)
. Even when I leave it default it won't work.No errors in console and I tried modifying the package I just can't figure it out.
Anyone else experienced this or have any ideas?
The text was updated successfully, but these errors were encountered: