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 78564b8 commit 4de6784Copy full SHA for 4de6784
CHANGELOG.md
@@ -1,5 +1,9 @@
1
# Changelog
2
3
+## Next
4
+- Fix broken month dropdown on Firefox
5
+- Fix unreliable clamping to min/max dates
6
+
7
## 2.1.0 - 2022 Jul 31
8
- Add `browseWithoutSelecting` property
9
- Use well-supported `:focus` instead of `:focus-within`
src/lib/DatePicker.svelte
@@ -43,9 +43,9 @@
43
setValue(min)
44
}
45
function clamp(d: Date, min: Date, max: Date) {
46
- if (browseDate > max) {
+ if (d > max) {
47
return cloneDate(max)
48
- } else if (browseDate < min) {
+ } else if (d < min) {
49
return cloneDate(min)
50
} else {
51
return cloneDate(d)
0 commit comments