Skip to content
Snippets Groups Projects

Fix clicking disabled clipboard button toolip

Merged Luke "Jared" Bennett requested to merge disable-clicking-disabled-clipboard-button into master
All threads resolved!
2 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -50,9 +50,9 @@ export default class BlobViewer {
@@ -50,9 +50,9 @@ export default class BlobViewer {
if (this.copySourceBtn) {
if (this.copySourceBtn) {
this.copySourceBtn.addEventListener('click', () => {
this.copySourceBtn.addEventListener('click', () => {
if (this.copySourceBtn.classList.contains('disabled')) return;
if (this.copySourceBtn.classList.contains('disabled')) return this.copySourceBtn.blur();
this.switchToViewer('simple');
return this.switchToViewer('simple');
});
});
}
}
}
}
Loading