Skip to content

Commit

Permalink
fix(new-releases): stop close button propagation (#3224)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumeboehm authored Nov 26, 2024
1 parent e3ec2ec commit b26a60e
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 b26a60e

Please sign in to comment.