Skip to content

Commit 22c5998

Browse files
change validation
1 parent 6586a3c commit 22c5998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const createButton = (text, isDisabled = false, type = 0) => {
140140
const button = document.createElement("button");
141141
button.textContent = text;
142142
button.disabled = isDisabled;
143-
if(!button.disabled) button.classList.toggle("today", isToday);
143+
button.classList.toggle("today", isToday && !isDisabled);
144144
button.classList.toggle("selected", selected);
145145
return button;
146146
};

0 commit comments

Comments
 (0)