fix(ui): allow input month with keystrokes (#5785)

Signed-off-by: p-fernandez <pablo.fernandez.otero@gmail.com>
This commit is contained in:
Pablo Fernández
2024-06-25 12:02:27 +07:00
committed by GitHub
parent a7bec96320
commit 4496530fed
@@ -118,6 +118,7 @@
if (edit.value === -1 && full && i > 2) result = true
if (edit.value === -1 && !full && i < 3) result = true
if (i === 0 && edit.value === 0) result = true
if (i === 1 && edit.value === 0) result = true
if (i === 2 && (edit.value < 1970 || edit.value > 3000)) result = true
})
return result