Skip to content

Commit 987d27d

Browse files
fix(igxTimePicker): parses am/pm properly when typing
1 parent a1bcd94 commit 987d27d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/time-picker/time-picker.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ export class IgxTimePickerComponent implements
12911291
}
12921292

12931293
if (this.showAmPmList) {
1294-
amPM = sections[sections.length - 1];
1294+
amPM = sections[sections.length - 1].toUpperCase();
12951295

12961296
if (((this.showHoursList && date.getHours().toString() !== '12') ||
12971297
(!this.showHoursList && date.getHours().toString() <= '11')) && amPM === 'PM') {

0 commit comments

Comments
 (0)