We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9528afd commit 0156caaCopy full SHA for 0156caa
custom-date-input/main.js
@@ -28,6 +28,7 @@ function checkLeapYear(year) {
28
const setDayOptions = () => {
29
checkLeapYear(year) ? days[1] = 29 : days[1] = 28;
30
31
+ yearSelect.innerHTML = '';
32
for (let i = 1; i <= days[month]; i++) {
33
daySelect.innerHTML += `<option value="${i}">${i}</option>`;
34
}
0 commit comments