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 = ''; });