From 7feb7631ced135523650fd5cf086869f84e4afc5 Mon Sep 17 00:00:00 2001 From: Guillaume BOEHM Date: Tue, 19 Nov 2024 19:50:33 +0100 Subject: [PATCH] fix(new-releases): card close button, stop propagation first thing --- CustomApps/new-releases/Card.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CustomApps/new-releases/Card.js b/CustomApps/new-releases/Card.js index fe14f84c3f..8095c62abe 100644 --- a/CustomApps/new-releases/Card.js +++ b/CustomApps/new-releases/Card.js @@ -30,6 +30,8 @@ class Card extends react.Component { } closeButtonClicked(event) { + event.stopPropagation(); + removeCards(this.props.uri); Spicetify.Snackbar.enqueueCustomSnackbar @@ -55,8 +57,6 @@ class Card extends react.Component { }), }) : Spicetify.showNotification(`Dismissed ${this.title} from
${this.artist.name}`); - - event.stopPropagation(); } render() {