Navigating away from overlays does not destroy the overlays properly. The background seems to stay.
Scenario 1: When a page section is rendered inside an overlay and the user clicks the page, the panel correctly navigates to the clicked page but doesn't remove all HTML properties of the overlay from the DOM. The alpha transparent background of the overlay is still visible until the user clicks on it.
Scenario 2: Opening an overlay and then clicking the browser back button.
Expected behavior
Switch to another page by clicking a page in a pagelist rendered inside an overlay or pushing a browser navigation button should remove the complete overlay from the DOM.
Description
Navigating away from overlays does not destroy the overlays properly. The background seems to stay.
Scenario 1: When a page section is rendered inside an overlay and the user clicks the page, the panel correctly navigates to the clicked page but doesn't remove all HTML properties of the overlay from the DOM. The alpha transparent background of the overlay is still visible until the user clicks on it.
Scenario 2: Opening an overlay and then clicking the browser back button.
Expected behavior
Switch to another page by clicking a page in a pagelist rendered inside an overlay or pushing a browser navigation button should remove the complete overlay from the DOM.
To reproduce
Your setup
Kirby Version
4.3.0
Console output
No errors in the console.
Your system (please complete the following information)
Additional context
Problem not reproducible in an earlier version I upgraded from, 4.1.2.