fixing closing button behaviour

This commit is contained in:
Tobi 2025-04-28 08:12:50 +02:00
parent cf2bf7ac6b
commit 932620e27b
2 changed files with 4 additions and 3 deletions

View file

@ -298,7 +298,8 @@
// Handle the × button click
$this.find('button.close').on('click', function(event) {
event.stopPropagation(); // Prevent the click from bubbling to the article
event.preventDefault();
event.stopPropagation();
location.hash = '';
});