X button fix

This commit is contained in:
Tobi 2025-04-27 01:18:27 +02:00
parent a68a8644f8
commit cdc1bc7bb0

View file

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