https://angular-hlrhkp-pzxidw.stackblitz.io/
Steps to reproduce:
What behavior were you expecting to see?
The overlay of the previous component should be destroyed, when the browser navigation buttons clicked
What behavior did you actually see?
The overlay of the material persists even after the page is routed to next page
This issue is not present in v8, I copied your example: https://stackblitz.com/edit/cdk-v8-overlay-issue-17973 and it works fine.
I was able to reproduce the issue based on the example based on v8. https://cdk-v8-overlay-issue-17973-zc2zdd.stackblitz.io/
The overlay has an option now called disposeOnNavigation, we should probably either set this as the default behavior for menu/tooltip/select, etc., or at least add an option to make it the default.
Most helpful comment
The overlay has an option now called
disposeOnNavigation, we should probably either set this as the default behavior for menu/tooltip/select, etc., or at least add an option to make it the default.