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
Toastr Container #375
Comments
I have the same issue. https://github.com/CodeSeven/toastr/blob/master/toastr.js line 422:
I believe that is the issue. |
I hacked this behaviour with an empty span inside the container xD |
@tbragaf hah nice! |
The container should be RECREATED once a new toast appears. Specifically, the |
This isn't an issue - the container is removed by design once there are no remaining toasts. |
@TimFerrell So how can I achieve my purpose? |
What's your problem, specifically? |
@TimFerrell I don't want the container to disappear from my div element. |
Why are you trying to prevent the container from closing? |
@TimFerrell because I want the toasts to always appear inside it. |
The container will recreate itself automatically. Maybe I'm not asking the right questions here but can you please explain why you don't want this to happen? |
In my sample, the container recreates at the default position: body |
Sorry for the slow response. You can specify the element that the container appears within - is that not happening for you? |
@TimFerrell How so? I tried with: <div id="toast-container">
<!-- Only way to prevent the destruction -->
<span></span>
</div> |
I ran into this same issue today. @tbragaf 's hack does work, but this sure seems like a bug to me. If the user provides a "target", you shouldn't delete it (or at least add an option to override deletion). I want to position the container relative to a parent div, not have it be dynamically injected at the bottom of the DOM. |
Hi all!
It seems to me that after a toast is rendered (and then disappears) the container also disappears with it.
And, after that, my old container stops existing, and following toasts will render inside the default container with fixed position.
Is there anything I should be aware of?
Stay awesome,
tbragaf
The text was updated successfully, but these errors were encountered: