-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
image
and gallery
block drawers not fully closing when navigating away
#6778
Comments
It also happens when clicking on a user of a |
I think we need to fix with Something like that: mounted() {
this.$events.on("beforeunload", this.close);
},
destroyed() {
this.$events.off("beforeunload", this.close);
}, |
@afbora Have you tried that? I don't think the get called when navigating around the Panel, just leaving the Panel/closing the browser. |
@distantnative Yes, I tried but I thought it would work during page transitions but it didn't. Maybe I couldn't do it. |
Related to #6030 |
Description
When accessing a file from an
image
orgallery
block drawer, leftovers of the drawer remain visible.Expected behavior
See the file view without bugs.
Screenshots
![Bildschirmfoto 2024-10-29 um 15 00 55](https://private-user-images.githubusercontent.com/9334305/381154173-97668a40-cf01-4281-9c9c-d3adb4834494.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMjY4NDgsIm5iZiI6MTczOTEyNjU0OCwicGF0aCI6Ii85MzM0MzA1LzM4MTE1NDE3My05NzY2OGE0MC1jZjAxLTQyODEtOWM5Yy1kM2FkYjQ4MzQ0OTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMTg0MjI4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTU4ZGI0NTAwMGRhZmZjOWRlYWM1OTQzMWJjZWNjNGYzYWNmNDI3N2QwYTA0Nzc1ODkyMTZlYWJkOTNkNDQ4NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.tg2AS66-fnX5pjR27y40KuI9Ei1cF3XNaHmHhaZ2REc)
To reproduce
Blog
exampleYour setup
Kirby Version
4.4.1
Console output
Nothing unusual
Your system (please complete the following information)
The text was updated successfully, but these errors were encountered: