@@ -209,11 +209,11 @@ export class IgxDaysViewComponent extends IgxCalendarBase implements DoCheck {
209
209
public isSelected ( date : ICalendarDate ) : boolean {
210
210
const selectedDates = ( this . value as Date [ ] ) ;
211
211
if ( ! date . isCurrentMonth ) {
212
- return ;
212
+ return false ;
213
213
}
214
214
215
215
if ( ! this . value || selectedDates . length === 0 ) {
216
- return ;
216
+ return false ;
217
217
}
218
218
219
219
if ( selectedDates . length === 1 ) {
@@ -232,7 +232,7 @@ export class IgxDaysViewComponent extends IgxCalendarBase implements DoCheck {
232
232
}
233
233
234
234
} else {
235
- return this . isWithinRange ( date . date , false ) ;
235
+ return this . isWithinRange ( date . date , true ) ;
236
236
}
237
237
}
238
238
@@ -281,7 +281,7 @@ export class IgxDaysViewComponent extends IgxCalendarBase implements DoCheck {
281
281
*/
282
282
public isWithinRange ( date : Date , checkForRange : boolean , min ?: Date , max ?: Date ) : boolean {
283
283
if ( checkForRange && ! ( Array . isArray ( this . value ) && this . value . length > 1 ) ) {
284
- return ;
284
+ return false ;
285
285
}
286
286
287
287
min = min ? min : this . value [ 0 ] ;
@@ -612,7 +612,7 @@ export class IgxDaysViewComponent extends IgxCalendarBase implements DoCheck {
612
612
if ( date . isCurrentMonth && ! this . isSingleSelection && this . isWithinRange ( date . date , true ) ) {
613
613
const nextDay = new Date ( date . date ) ;
614
614
nextDay . setDate ( nextDay . getDate ( ) + inc ) ;
615
- if ( this . isWithinRange ( nextDay , false ) && date . date . getMonth ( ) + inc === nextDay . getMonth ( ) ) {
615
+ if ( this . isWithinRange ( nextDay , true ) && date . date . getMonth ( ) + inc === nextDay . getMonth ( ) ) {
616
616
return true ;
617
617
}
618
618
}
0 commit comments