question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Toastr doesn't appear

See original GitHub issue

Issue type

I’m submitting a … (check one with “x”)

  • bug report
  • feature request

Issue description

Current behavior:

First, you go to the dashboard page that includes some codes to show toastr on AfterViewInit. It will show toastr. And then you go to login page(because of logout), when you try to open again the dashboard, it doesn’t appear. The global overlay wrapper that contains nb-toastr-container is not in the login page. so, whenever you get the dashboard again(right after opening one of auth page) angular will re-render layouts and components you made but toastr seems still holding destroyed nb-toastr-container and it’s not re-rendered.

Expected behavior:

Showing toastr

Steps to reproduce:

with ngx-admin

  1. add toastr call on dashboard.
  2. open dashboard.
  3. go to one of auth page.
  4. back to dashboard
  5. toastr doesn’t appear

Other information:

npm, node, OS, Browser

node: v10.13.0
npm: v6.4.1
Tested OS: Mac Mojave, Windows 10
Tested Browser: Chrome/Safari/Edge

Angular, Nebular

it's the same as the files in ngx-admin

feature request is there any way to place toast component manually? if a page I made is not in layout(but it imports theme module like auth page), there is no way to use toastr. sometimes we need full screen page with using toastr this way.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
FilipK23commented, Nov 13, 2019

I still have the same issue. When I navigate from auth module to main module toastr doesn’t appear. (version 4.5.0)

1reaction
mirpuicorcommented, May 10, 2020

It is scheduled for 3.3.0, should be released relatively soon: image

Same problem with v 5.0.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Toastr notification not appearing when called
Why does my JavaScript code receive a "No 'Access-Control-Allow-Origin' header is present on the requested resource" error, while Postman does not? 771.
Read more >
Toastr not showing up - MSDN - Microsoft
I got my button running up to try showing a toastr notification. But it simply does not show up. Here's my code:
Read more >
Toast not visible, it can be seen in html dom through ...
i imported the toastr module in my app module and included the import as well. i imported the toastrservice in my component then...
Read more >
toast options not working
Hi I am trying to use TOAST message to display error message.I want to show the error message in center bottom so I...
Read more >
Toastr notification not working
Toastr notification not working. i included the minified toastr css and js file but its not working help me to get toastr notification....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found