Skip to content

Commit da5e3a7

Browse files
author
Pedro Lucas Da Silva Cunha
committed
Prevent error when scrolling through time before setting apm
1 parent 02e500e commit da5e3a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VueCtkDateTimePicker/_subs/PickersContainer/_subs/TimePicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
onScrollHours: debounce(function (scroll) {
278278
const value = this.getValue(scroll)
279279
const hour = this.isTwelveFormat
280-
? this.apm
280+
? this.apm && this.apm.toLowerCase
281281
? this.apm.toLowerCase() === 'am'
282282
? value + 1
283283
: (value + 1 + 12)

0 commit comments

Comments
 (0)