Skip to content

Commit 277bcb0

Browse files
committed
Revert "Change onclick back to onmousedown"
This reverts commit c665ba1. This breaks button disabling
1 parent 1caebaa commit 277bcb0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ function fireEvents() {
173173
let shaking = false;
174174
let counter = 0; // TODO: DONT FORGET TO SET TO 0 ON RELEASE!!!
175175

176-
clickMeWrapper.onmousedown = (e) => {
176+
// TODO: change it to onmousedown (it stopped working after separating button and label)
177+
clickMe.onclick = () => {
177178
counter += 1;
178179
popupText.innerText = counter + "🍑💨";
179180
fireEvents();

0 commit comments

Comments
 (0)