When it set
after selecting hours, extra-content appears instaed of default minutes: "0-1". Occures on main site in part "Timepicker with the Now, Deselect and Close buttons" after deselecting time input.
If either hours or minutes is required and missing, time will not be …
…parsed - issue #50
This should fix it. The same problem occured with hours if you selected only minutes.
Thanks for reporting the bug.
Thanks for quick reply.
With this changes now it is simply do not render results of hours and minutes selection if defaultTime: '' is set as default. Only after closing of popup window...
This is right, it does not render because the other part of the time is not defined yet.
In your case, when the defaultTime is an empty string, what do you expect the parsed time to be if the used only selected the hours?
I think it should either default to 00 minutes or not render at all.
I think that it should work like that:
I think if there is nothing appears in input field while selecting hours and minutes user can lost his action and understanding of what he is doing...
I've thought about it and you are right, it makes more sense to update the input box even if the full time is not defined yet, and it gives a better visual feedback to the user. I'll commit another change this week-end.
Thanks a lot! Looking forward to use fixed logic.
Rollback previous change and fixes getParsedTime correctly this time …
…- issue #50