We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9625b54 commit 7ee4c2aCopy full SHA for 7ee4c2a
src/VueCtkDateTimePicker/_subs/PickersContainer/_subs/TimePicker.vue
@@ -288,9 +288,11 @@
288
onScrollHours: debounce(function (scroll) {
289
const value = this.getValue(scroll)
290
const hour = this.isTwelveFormat
291
- ? this.apm.toLowerCase() === 'am'
292
- ? value + 1
293
- : (value + 1 + 12)
+ ? this.apm
+ ? this.apm.toLowerCase() === 'am'
+ ? value + 1
294
+ : (value + 1 + 12)
295
+ :value
296
: value
297
if (this.isHoursDisabled(hour)) return
298
this.hour = hour === 24 && !this.isTwelveFormat ? 23 : hour
0 commit comments