Skip to content

Commit 9260971

Browse files
committed
fix(docs): remove copied class in error timeout callback
1 parent c092e85 commit 9260971

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

docs/public/copy-code-button.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ document.addEventListener("DOMContentLoaded", () => {
7070

7171
timeoutId = setTimeout(() => {
7272
button.innerText = "Copy";
73+
button.classList.remove("copied");
7374
button.setAttribute("aria-label", "Copy code to clipboard");
7475
timeoutId = null;
7576
}, 2000);

0 commit comments

Comments
 (0)