Skip to content

Commit

Permalink
fix(new-releases): card close button, stop propagation first thing
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumeboehm committed Nov 19, 2024
1 parent e3ec2ec commit 7feb763
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CustomApps/new-releases/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class Card extends react.Component {
}

closeButtonClicked(event) {
event.stopPropagation();

removeCards(this.props.uri);

Spicetify.Snackbar.enqueueCustomSnackbar
Expand All @@ -55,8 +57,6 @@ class Card extends react.Component {
}),
})
: Spicetify.showNotification(`Dismissed <b>${this.title}</b> from <br>${this.artist.name}</b>`);

event.stopPropagation();
}

render() {
Expand Down

0 comments on commit 7feb763

Please sign in to comment.