Skip to content

Commit b26a60e

Browse files
fix(new-releases): stop close button propagation (#3224)
1 parent e3ec2ec commit b26a60e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CustomApps/new-releases/Card.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ class Card extends react.Component {
3030
}
3131

3232
closeButtonClicked(event) {
33+
event.stopPropagation();
34+
3335
removeCards(this.props.uri);
3436

3537
Spicetify.Snackbar.enqueueCustomSnackbar
@@ -55,8 +57,6 @@ class Card extends react.Component {
5557
}),
5658
})
5759
: Spicetify.showNotification(`Dismissed <b>${this.title}</b> from <br>${this.artist.name}</b>`);
58-
59-
event.stopPropagation();
6060
}
6161

6262
render() {

0 commit comments

Comments
 (0)