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.
Up/Down
1 parent 4de6784 commit a2e421aCopy full SHA for a2e421a
CHANGELOG.md
@@ -3,6 +3,7 @@
3
## Next
4
- Fix broken month dropdown on Firefox
5
- Fix unreliable clamping to min/max dates
6
+- Fix month `Up/Down` arrow key shortcuts
7
8
## 2.1.0 - 2022 Jul 31
9
- Add `browseWithoutSelecting` property
src/lib/DatePicker.svelte
@@ -171,9 +171,9 @@
171
shiftKeydown(e)
172
return
173
} else if (e.key === 'ArrowUp') {
174
- setMonth(browseDate.getFullYear() - 1)
+ setMonth(browseDate.getMonth() - 1)
175
} else if (e.key === 'ArrowDown') {
176
- setMonth(browseDate.getFullYear() + 1)
+ setMonth(browseDate.getMonth() + 1)
177
} else if (e.key === 'ArrowLeft') {
178
setMonth(browseDate.getFullYear() - 1)
179
} else if (e.key === 'ArrowRight') {
0 commit comments