@@ -268,6 +268,9 @@ export class IgxHourItemDirective {
268268
269269 @HostBinding ( 'class.igx-time-picker__item--disabled' )
270270 get applyDisabledStyleForHours ( ) : boolean {
271+ if ( this . minValueDate === undefined || this . maxValueDate === undefined ) {
272+ return false ;
273+ }
271274 let hour = parseInt ( this . value ) ;
272275 if ( this . selectedAmPm === 'PM' ) {
273276 hour += 12 ;
@@ -333,6 +336,9 @@ export class IgxMinuteItemDirective {
333336
334337 @HostBinding ( 'class.igx-time-picker__item--disabled' )
335338 get applyDisabledStyleForMinutes ( ) : boolean {
339+ if ( this . minValueDate === undefined || this . maxValueDate === undefined ) {
340+ return false ;
341+ }
336342 const minute = parseInt ( this . value ) ;
337343 let hour = parseInt ( this . selectedHour ) ;
338344 if ( this . selectedAmPm === 'PM' ) {
@@ -403,6 +409,9 @@ export class IgxSecondsItemDirective {
403409
404410 @HostBinding ( 'class.igx-time-picker__item--disabled' )
405411 get applyDisabledStyleForSeconds ( ) : boolean {
412+ if ( this . minValueDate === undefined || this . maxValueDate === undefined ) {
413+ return false ;
414+ }
406415 const minute = parseInt ( this . selectedMinute ) ;
407416 let hour = parseInt ( this . selectedHour ) ;
408417 const second = parseInt ( this . value ) ;
@@ -475,6 +484,9 @@ export class IgxAmPmItemDirective {
475484
476485 @HostBinding ( 'class.igx-time-picker__item--disabled' )
477486 get applyDisabledStyleForAmPm ( ) : boolean {
487+ if ( this . minValueDate === undefined || this . maxValueDate === undefined ) {
488+ return false ;
489+ }
478490 const minute = parseInt ( this . selectedMinute ) ;
479491 let hour = parseInt ( this . selectedHour ) ;
480492 const second = parseInt ( this . selectedSecond ) ;
0 commit comments