Angular 5 material, material snackbar is not showing correctly for custom ErrorHandling only, otherwise it works fine:
I am trying to show my backend errors using material snackbar, the problem is that the 1st time it is fired, it appears in wrong place (not the bottom middle as it should, but up to the left) & it stays there forever without disappearing (it should automatically disappear after 2 seconds as per my configuration)
For the next times it appears, it will appear correctly & disappear after the 2 seconds.
Please try the issue here: stackblitz example showing my issue.
Thanks