From cdc1bc7bb023dfe65b3d8216698c53f05d55b765 Mon Sep 17 00:00:00 2001 From: tobi Date: Sun, 27 Apr 2025 01:18:27 +0200 Subject: [PATCH] X button fix --- assets/js/main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/js/main.js b/assets/js/main.js index baccbf0..9800406 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -296,8 +296,9 @@ location.hash = ''; }); - // Add click handler for the × button - $this.find('.close').on('click', function() { + // Handle the × button click + $this.find('button.close').on('click', function(event) { + event.stopPropagation(); // Prevent the click from bubbling to the article location.hash = ''; });