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 236d32a commit cd93f81Copy full SHA for cd93f81
src/Date/Month.tsx
@@ -143,9 +143,8 @@ function Month({
143
})
144
: false
145
146
- let leftCrop: boolean = selectedStartDay || dayOfMonth === 0
147
- let rightCrop: boolean =
148
- selectedEndDay || dayOfMonth - 1 === daysInMonth
+ let leftCrop: boolean = selectedStartDay || dayOfMonth === 1
+ let rightCrop: boolean = selectedEndDay || dayOfMonth === daysInMonth
149
150
if (dayIndex === 0 && !selectedStartDay) {
151
leftCrop = false
@@ -155,6 +154,13 @@ function Month({
155
154
rightCrop = false
156
}
157
+ if (
158
+ (dayOfMonth === 1 && selectedEndDay) ||
159
+ (dayOfMonth === daysInMonth && selectedStartDay)
160
+ ) {
161
+ inRange = false
162
+ }
163
+
164
return {
165
beforeWeekDay,
166
afterWeekDay,
0 commit comments