mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Fixed text input on 24hour time picker (#5723)
This commit is contained in:
parent
34f1a990d7
commit
9b7397f9ac
1 changed files with 1 additions and 4 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue