Stop click propagating to elements behind download/subscribe buttons

This commit is contained in:
Ritiek Malhotra 2024-05-29 06:50:36 +05:30
parent 82a64ff4ba
commit 569e7ff532
No known key found for this signature in database

View File

@ -243,6 +243,7 @@ function buildChannelSubButton(channelHandle) {
} else {
console.log('Unknown state');
}
e.stopPropagation();
});
Object.assign(channelSubButton.style, {
padding: '5px',
@ -304,6 +305,7 @@ function buildChannelDownloadButton() {
e.preventDefault();
console.log(`download: ${currentLocation}`);
sendDownload(channelDownloadButton);
e.stopPropagation();
});
Object.assign(channelDownloadButton.style, {
filter: 'invert()',