Skip to content

Commit fd1c170

Browse files
committed
fix(calendar): correct range logic in isFirstInRange and isLastInRange functions
1 parent a601828 commit fd1c170

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/calendar/days-view/days-view.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ export default class IgcDaysViewComponent extends EventEmitterMixin<
276276
// XXX: Ranges
277277

278278
private isFirstInRange(day: CalendarDay) {
279-
if (this._isSingle || !this._hasValues) {
279+
if (!this._isRange || !this._hasValues) {
280280
return false;
281281
}
282282

@@ -288,7 +288,7 @@ export default class IgcDaysViewComponent extends EventEmitterMixin<
288288
}
289289

290290
private isLastInRange(day: CalendarDay) {
291-
if (this._isSingle || !this._hasValues) {
291+
if (!this._isRange || !this._hasValues) {
292292
return false;
293293
}
294294

0 commit comments

Comments
 (0)