AVAnnotate / admin-client

Application for building AVAnnotate websites
0 stars 0 forks source link

Enter Duration dialog skews numbers #167

Open SteveMarvin opened 3 weeks ago

SteveMarvin commented 3 weeks ago

When I am asked to enter the duration of an imported event, it won't take the number I enter. It shifts it. If I type in 12759 or 1:27:59, it gives me 01:31:59

image.png image.png

and I can't go back and edit within the numbers. I can only backspace or delete it and try again. I can't just select the 31 and make it 27

Camden Hm, I think when 1275 is entered it interprets that as 12:75 and adjusts it to be 13:15. It should probably be updated to only run the formatting when the input loses focus (i.e. when the user clicks away) so you can type the full number in without it messing with it.

It's being converted to a number of seconds, so it might also be fine to just allow things like 12:75 since it'll reduce down to the seconds the same way.