Fixed text input on 24hour time picker (#5723)

This commit is contained in:
FloVanGH 2024-07-31 07:00:37 +00:00 committed by GitHub
parent 34f1a990d7
commit 9b7397f9ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -511,11 +511,8 @@ export component TimePickerBase {
if !root.selection-mode {
return;
}
if root.use-24-hour-format {
root.update-time(root.time-picker-hour <= 23 ? root.time-picker-hour : 23, root.time-picker-minute <= 59 ? root.time-picker-minute : 59);
}
root.update-time(root.time-picker-hour <= 12 ? root.time-picker-hour : 12, root.time-picker-minute <= 59 ? root.time-picker-minute : 59);
root.update-time(min(root.time-picker-hour, root.use-24-hour-format ? 23 : 12), min(root.time-picker-minute, 59));
}
changed time => {