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 1fdbfe7 commit ffea3c6Copy full SHA for ffea3c6
resources/js/Components/Common/TimePicker.vue
@@ -29,7 +29,7 @@ function updateMinutes(event: Event) {
29
const newValue = target.value;
30
if (!isNaN(parseInt(newValue))) {
31
model.value = getLocalizedDayJs(model.value)
32
- .set('minutes', parseInt(newValue))
+ .set('minutes', Math.min(parseInt(newValue), 59))
33
.utc()
34
.format();
35
}
@@ -40,7 +40,7 @@ function updateHours(event: Event) {
40
41
42
43
- .set('hours', parseInt(newValue))
+ .set('hours', Math.min(parseInt(newValue), 23))
44
45
46
0 commit comments