X button fix
This commit is contained in:
parent
a68a8644f8
commit
cdc1bc7bb0
1 changed files with 3 additions and 2 deletions
|
@ -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 = '';
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue